Skip to content

Instantly share code, notes, and snippets.

🌎
★·.·´¯`·.·★·.·´¯`·.·★·.·´¯`·.·★·

jwasinger

🌎
★·.·´¯`·.·★·.·´¯`·.·★·.·´¯`·.·★·
Block or report user

Report or block jwasinger

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jwasinger
jwasinger / instructions.md
Created May 3, 2019
Instructions to reproduce Solidity test failures when using truffle example with Geth
View instructions.md
@jwasinger
jwasinger / instructions.md
Last active Apr 30, 2019
Instructions to Reproduce Truffle bug with Geth
View instructions.md
View ecadd_benchmark.c
This file has been truncated, but you can view the full file.
#include <math.h>
#include <string.h>
#include "ecadd_benchmark.h"
#define UNLIKELY(x) __builtin_expect(!!(x), 0)
#define LIKELY(x) __builtin_expect(!!(x), 1)
#define TRAP(x) (wasm_rt_trap(WASM_RT_TRAP_##x), 0)
@jwasinger
jwasinger / instructions.md
Last active Jan 23, 2019
Instructions for compiling ecadd benchmark to native using wasm2c
View instructions.md
> ( git clone https://github.com/jwasinger/ewasm-precompiles -b ecadd-benchmark && cd ewasm-precompiles && cargo build --target wasm32-unknown-unknown )
> git clone https://github.com/webassembly/wabt
> cd wabt/wasm2c && cp /path/to/ewasm-precompiles/target/wasm32-unknown-unknown/debug/ecadd_benchmark.wasm .
> ( build wabt )
> wasm2c ecadd_benchmark.wasm -o ecadd_benchmark.c
  1. In the same folder, create a file main.c:
View gist:0e522eb7e1cce6b45c3ac103054e184c
7557f01a255ac98a325a1bfaae484ba11b01368e299c3b8d9370180750823bead94430b019f29bc78bdd2a9cbe796c9b633ad5cbe4ac804ac118563790e4c657a978c89e1b83c4a2f337a77b10351d0e184089fecf0ea8870614570306edd4a9ece7cdbc3378978bf4a4f85c0252ebb51cf00b2a4fc23833c6a1f6875503ae08
a955f8731e5c47a921b9b59d35163c3ce1c6dbcd595ce8dbc560211d93658e1f6dccbc119f1f5a3444694e47ff6f43ed7a8e436db31841d5268959a812b9dee5055b27f3ac35c40eb0dadb4359a6bb46ebcb1acb5fdd0a78c6dec07808ee3e188937e2f5657e5582a88a04888c89be98d3aa1b89ad31d2aca4f13a994ddb1f02
456bdd2b7919e38aacc168b55236a54014f0bcd8db201c1b479a6578b0d4b47d70d13909d88843a4d2c59f1a6a1f68dc1e749a2af97b55220c50e1341d62cd824e5d79b4439e7d7ba97f9226c2e765b663a95fdcab699f18b2fd8784ba316ef4103a9d08d49422df99a8262aa8a88a6efce399c0e124a75b863a32d375e84806
0f581b9406e0a989e3da01b634aac88a6b5560f86f0568ee024dbff83e2f6ed83543138df02e945c4d21e02f980542c4e75e0d405da07b15d4abf0207f908f2134ed60f2fae2c201bcc89a515d61317cf767be84f4e5d6066142c9cd3f1d3a841fe7298fae216667aad1e834c65bf23046b3a3d53986222c23c24a5e017ad
@jwasinger
jwasinger / instructions.md
Last active Dec 12, 2018
parity deploy clique setup
View instructions.md

Prereqs

  • have geth binary in your path
  • have parity binary in your path
  • have npm, nodejs installed

Setup

git clone https://github.com/jwasinger/parity-deploy -b clique
View genesis.json
{
"config": {
"chainId": 66,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"ewasmBlock": 0,
@jwasinger
jwasinger / genesis.json
Created Oct 28, 2018
ewasm staging testnet genesis with new metering contract
View genesis.json
{
"config": {
"chainId": 66,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"ewasmBlock": 0,
View genesis.json
{
"config": {
"chainId": 66,
"homesteadBlock": 1,
"eip150Block": 2,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 3,
"eip158Block": 3,
"byzantiumBlock": 4,
"ewasmBlock": 0,
View gist:6e3dc8e98ed51f1f4ea0a71618c08f59
This file has been truncated, but you can view the full file.
ed25519:
env:
currentCoinbase: 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba
currentDifficulty: '0x020000'
currentGasLimit: '89128960'
currentNumber: '1'
currentTimestamp: '1000'
previousHash: 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6
pre:
You can’t perform that action at this time.