Skip to content

Instantly share code, notes, and snippets.

View onyb's full-sized avatar
:octocat:
Exploring blocks

Anirudha Bose onyb

:octocat:
Exploring blocks
View GitHub Profile
@onyb
onyb / pools.json
Created December 15, 2020 23:20 — forked from denpamusic/pools.json
Bitcoin mining pool coinbase signatures.
[
{
"name": "HaoBTC",
"url" : "https://haobtc.com/",
"searchStrings": [
"HaoBTC"
]
},
{
"name": "Bitfury",
@onyb
onyb / generate.js
Created July 24, 2020 15:28
SLIP32 test vector generator (using bitcoinjs)
// Based on https://gist.github.com/clarkmoody/0a788d2e012ffe339bb7d3873e47c081
// 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
onyb / release-notes.md
Last active July 22, 2020 20:46
btcutil v1.1.0 release notes

v1.1.0

  • 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)

psbt/v1.1.0

  • 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
onyb / btcsuite.md
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
onyb / README.md
Last active May 11, 2020 17:35
Bitcoin Hardening

Bitcoin Hardening

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

Requirements

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