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 / 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 / OS3e_Chapter_09
Last active January 17, 2022 19:54
Operating Systems (Third Edition): Chapter 9
Operating Systems (Third Edition)
Harvey M. Deitel, Paul J. Deitel, David R. Choffnes
-------------------------------------------------------------------------------
CHAPTER 9: Real Memory Organization
-------------------------------------------------------------------------------
# Memory Hierarchy
- Main memory
* Should store currently needed program instructions and data only
@onyb
onyb / README.md
Created August 16, 2014 18:59
Code samples for Simulated Annealing

Download the following files and keep them inside the same directory.

To launch the annealing algorithm, use the following command: bahs launch.sh

@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 / cDAI.json
Created October 21, 2019 20:38
Ethereum ABI Decoder - v1
[
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
@onyb
onyb / OS3e_Chapter_10
Created April 10, 2015 16:49
Operating Systems (Third Edition): Chapter 10
# Introduction
- Solves the problem of limited memory space, by creating an illusion that
more memory exists than is available in the system.
- Two types of addresses in virtual memory systems
* Virtual addresses: referenced by processes
* Physical (real) addresses: describes locations in main memory
# Evolution of Memory Organization
├── Real Memory Systems