This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ethUtil = require('ethereumjs-util') | |
var address = '0x1dba1131000664b884a1ba238464159892252d3a' | |
var msg = 'https://www.reddit.com/r/ethereum/comments/6obofq/a_modified_version_of_a_common_multisig_had_a/' | |
var claimed = '0xe7bf6c80979b6633dc9bdc7ae556f40ceb43eee2ba8b2a7deaf9b838dd8b21d46858b62b0b01b257f7194de03366f09aa89115717f8860b4620d8a6c92cbeec71c' | |
const msgHash = ethUtil.hashPersonalMessage(new Buffer(msg)) | |
const sigParams = ethUtil.fromRpcSig(claimed) | |
const publicKey = ethUtil.ecrecover(msgHash, sigParams.v, sigParams.r, sigParams.s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ethUtil = require('ethereumjs-util') | |
var address = '0x1dba1131000664b884a1ba238464159892252d3a' | |
var msg = 'https://www.reddit.com/r/ethereum/comments/6obofq/a_modified_version_of_a_common_multisig_had_a/' | |
var claimed = '0xe7bf6c80979b6633dc9bdc7ae556f40ceb43eee2ba8b2a7deaf9b838dd8b21d46858b62b0b01b257f7194de03366f09aa89115717f8860b4620d8a6c92cbeec71c' | |
const msgHash = ethUtil.hashPersonalMessage(new Buffer(msg)) | |
const sigParams = ethUtil.fromRpcSig(claimed) | |
const publicKey = ethUtil.ecrecover(msgHash, sigParams.v, sigParams.r, sigParams.s) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xFDEa65C8e26263F6d9A1B5de9555D2931A33b825 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xF61807b9488374c44a8fE022273855B5fA7E61f3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flyswatter | |
0x55e2780588aa5000F464f700D2676fD0a22Ee160 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Eth = require('ethjs') | |
var tokenAbi = require('human-standard-token-abi') | |
var tokenAddress = '0x48ff0cbac0acefedf152281ee80e9a0a01d5da63' | |
var secondAddress = '0xC5b8dBAc4c1d3F152cDeb400E2313F309c410aCb' | |
var eth, token | |
window.addEventListener('load', function() { | |
if (typeof window.web3 !== undefined) { | |
eth = new Eth(web3.currentProvider) | |
// Now enjoy! Use it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Eth = require('ethjs') | |
var tokenAbi = require('human-standard-token-abi') | |
var tokenAddress = '0x48ff0cbac0acefedf152281ee80e9a0a01d5da63' | |
var secondAddress = '0xC5b8dBAc4c1d3F152cDeb400E2313F309c410aCb' | |
var eth, token | |
window.addEventListener('load', function() { | |
if (typeof window.web3 !== 'undefined') { | |
eth = new Eth(web3.currentProvider) | |
// Now enjoy! Use it! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <toneAC.h> | |
const int stringInput = A4; // The input pin for the string-like soft pot. | |
int stringValue = 0; // variable to store the value coming from the sensor | |
const int pickX = A1; // The input pin for the joystick's X axis. | |
int pickXCenter = 0; | |
int pickXValue = 0; // The value of the joystick's X axis. | |
const int pickY = A2; // Same as above, but for Y. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Analog Input | |
Demonstrates analog input by reading an analog sensor on analog pin 0 and | |
turning on and off a light emitting diode(LED) connected to digital pin 13. | |
The amount of time the LED will be on and off depends on | |
the value obtained by analogRead(). | |
The circuit: | |
* Potentiometer attached to analog input 0 | |
* center pin of the potentiometer to the analog pin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metamask": { | |
"isInitialized": true, | |
"isUnlocked": true, | |
"rpcTarget": "https://rawtestrpc.metamask.io/", | |
"identities": { | |
"0xac39b311dceb2a4b2f5d8461c1cdaf756f4f7ae9": { | |
"address": "0xac39b311dceb2a4b2f5d8461c1cdaf756f4f7ae9", | |
"name": "Account 1" | |
}, |