Skip to content

Instantly share code, notes, and snippets.

View onyb's full-sized avatar
Exploring blocks

Anirudha Bose onyb

Exploring blocks
View GitHub Profile
onyb / pools.json
Created December 15, 2020 23:20 — forked from denpamusic/pools.json
Bitcoin mining pool coinbase signatures.
View pools.json
"name": "HaoBTC",
"url" : "",
"searchStrings": [
"name": "Bitfury",
onyb / generate.js
Created July 24, 2020 15:28
SLIP32 test vector generator (using bitcoinjs)
View generate.js
// Based on
// by Clark Moody.
const bitcoinjs = require('bitcoinjs-lib') // @3.3.2
const bip39 = require('bip39')
const bip32 = require('bip32')
const _ = require('lodash')
const script = bitcoinjs.script
const networks = {
onyb /
Last active July 22, 2020 20:46
btcutil v1.1.0 release notes


  • Fixed nil pointer dereference when WitnessHash is called before HasWitness. (#165)
  • Added public methods to expose version and child index of an ExtendedKey. (#171)
  • Fixed OutOfRangeError bound check in Block.Tx method. (#175)
  • Added a public method to expose the chain code of an ExtendedKey. (#176)


  • Fixed a bug due to an incorrect variable unpacking order, in an internal psbt utility. (#157)
  • Export WriteTxWitness method, and added several psbt utilities. (#173)
  • Added a utility function InPlaceSort to sort a PSBT according to BIP69. (#173)
onyb /
Last active July 13, 2020 13:59
btcsuite weekly - July week 2

PRs to review / merge

  • btcutil#175: Fix OutOfRangeError bound check in block.Tx method
  • btcutil#174: Fix error in base58check test
  • btcutil#151: add test case for litecoin bech32 addresses
  • btcutil#157: Assign returned values in correct order
  • btcutil#176: hdkeychain: Add method to export the chain code
  • btcd#1578: rpcclient: Add getdescriptorinfo RPC call
  • btcd#1584: rpcclient: Implement importmulti JSON-RPC client command
  • btcd#1601: GitHub Actions: Enable Go Race detector and code coverage
onyb /
Last active May 11, 2020 17:35
Bitcoin Hardening

Bitcoin Hardening

Enjoy the Bitcoin Halving event from the comfort of your terminal.


  • Go 1.13
onyb /
Created January 9, 2020 23:21
secp256k1 Python workshop code
from dataclasses import dataclass
from field import FieldElement, PrimeGaloisField
class EllipticCurve:
a: int
b: int
onyb / cDAI.json
Created October 21, 2019 20:38
Ethereum ABI Decoder - v1
View cDAI.json
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
"name": "",
"type": "string"
View reobject_demo.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:c5d620a5678da758755f6b2f14775ce2
Verifying my Blockstack ID is secured with the address 1GCYh86p5zJdUU7T8AvGBUA2QyspNxepQ2