Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Bitcoin & friends.

Anirudha Bose onyb

:octocat:
Bitcoin & friends.
View GitHub Profile
@onyb
onyb / pools.json
Created Dec 15, 2020 — forked from denpamusic/pools.json
Bitcoin mining pool coinbase signatures.
View pools.json
[
{
"name": "HaoBTC",
"url" : "https://haobtc.com/",
"searchStrings": [
"HaoBTC"
]
},
{
"name": "Bitfury",
@onyb
onyb / generate.js
Created Jul 24, 2020
SLIP32 test vector generator (using bitcoinjs)
View generate.js
// 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 Jul 22, 2020
btcutil v1.1.0 release notes
View release-notes.md

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 Jul 13, 2020
btcsuite weekly - July week 2
View btcsuite.md

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
Bitcoin Hardening
View README.md

Bitcoin Hardening

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

Requirements

  • Go 1.13
@onyb
onyb / curve.py
Created Jan 9, 2020
secp256k1 Python workshop code
View curve.py
from dataclasses import dataclass
from field import FieldElement, PrimeGaloisField
@dataclass
class EllipticCurve:
a: int
b: int
@onyb
onyb / cDAI.json
Created Oct 21, 2019
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 https://explorer.blockstack.org/address/1GCYh86p5zJdUU7T8AvGBUA2QyspNxepQ2