Skip to content

Instantly share code, notes, and snippets.

View snogcel's full-sized avatar
🎯
Focusing

Jon Kindel snogcel

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am snogcel on github.
  • I am snogcel (https://keybase.io/snogcel) on keybase.
  • I have a public key whose fingerprint is 5DE0 1BF6 F61B E70D 90AF 68EB D0BE DE55 76BC 7E0E

To claim this, I am signing this object:

@snogcel
snogcel / bip0037.js
Created September 5, 2016 17:59 — forked from fanatid/bip0037.js
BIP-0037 example on JavaScript (bitcore-lib, bitcore-p2p, webcoin merkleTree)
var bitcore = require('bitcore-lib') // 0.13.14
var p2p = require('bitcore-p2p') // 1.1.0
var MerkleTree = require('webcoin/lib/merkleTree') // 1.0.2
var address = '1JSbd6CXJHzhGgadpio3HPXTZcSWzBHy3L'
var blockHash = '000000000000000006f9b9d985624bb621221cde9682a038a9a21403376c36f6' // 397690
// expect:
// tx: 0f15750e8a662ff7d02123677461477eb3b3222d6ca785b98f64c17d7d458699
// in block: 397697:0000000000000000021b3bd248ee38a47e0a9904d6a4bfbd7fcfe200bb533e97
// tx: ffe2822fd404e829ef4758617b01d2c4b9b26ab9a1a146e23be468aa0d881fa5