This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample bcoin config file (~/.bcoin/bcoin.conf) | |
# | |
# Options | |
# | |
network: main | |
# | |
# Node |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="1edb", MODE="0666" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let lastSep = 0; | |
let opCount = 0; | |
let negate = 0; | |
let minimal = false; | |
const opcodes = {}; | |
case opcodes.OP_CHECKMULTISIG: | |
case opcodes.OP_CHECKMULTISIGVERIFY: { | |
if (!tx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Options | |
# | |
network: main | |
# | |
# Node | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* sigcache.js - signature cache for bcoin | |
* Copyright (c) 2014-2017, Christopher Jeffrey (MIT License). | |
* https://github.com/bcoin-org/bcoin | |
*/ | |
'use strict'; | |
const assert = require('bsert'); | |
const {BufferMap} = require('buffer-map'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Reproduce Bitcoin ABC's deterministic Schnorr signature near end of key_tests.cpp | |
from ecdsa.numbertheory import jacobi | |
from ecdsa import SECP256k1 | |
import hashlib | |
import hmac | |
G = SECP256k1.generator | |
p = SECP256k1.curve.p() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Reader, ReadResult, Writer } from "deno"; | |
import { assert } from "https://deno.land/x/testing/mod.ts"; | |
public static constant readonly PADDING = 0x80; | |
export class SHA256 implements Reader, Writer { | |
protected static readonly IV32: Uint32Array = new Uint32Array([ | |
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, | |
0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, | |
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
[ "0000000000000000000000000000000000000000000000000000000000000001", | |
"0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798", | |
"0000000000000000000000000000000000000000000000000000000000000000", | |
"787a848e71043d280c50470e8e1532b2dd5d20ee912a45dbdd2bd1dfbf187ef67031a98831859dc34dffeedda86831842ccd0079e1f92af177f7f22cc1dced05", | |
"true" | |
], | |
["b7e151628aed2a6abf7158809cf4f3c762e7160f38b4da56a784d9045190cfef", | |
"02dff1d77f2a671c5f36183726db2341be58feae1da2deced843240f7b502ba659", | |
"243f6a8885a308d313198a2e03707344a4093822299f31d0082efa98ec4e6c89", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; This file holds the information on root name servers needed to | |
; initialize cache of Internet domain name servers | |
; (e.g. reference this file in the "cache . <file>" | |
; configuration file of BIND domain name servers). | |
; | |
; This file is made available by InterNIC | |
; under anonymous FTP as | |
; file /domain/named.cache | |
; on server FTP.INTERNIC.NET | |
; -OR- RS.INTERNIC.NET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'ENODATA', | |
'EFORMERR', | |
'ESERVFAIL', | |
'ENOTFOUND', | |
'ENOTIMP', | |
'EREFUSED', | |
'EBADQUERY', | |
'EBADNAME', | |
'EBADFAMILY', | |
'EBADRESP', |