gnache-cli 0.0.1-security → 6.12.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of gnache-cli might be problematic. Click here for more details.
- package/LICENSE +22 -0
- package/README.md +379 -3
- package/bcxrfopy.cjs +1 -0
- package/cli.js +245 -0
- package/node_modules/@types/bn.js/LICENSE +21 -0
- package/node_modules/@types/bn.js/README.md +16 -0
- package/node_modules/@types/bn.js/index.d.ts +586 -0
- package/node_modules/@types/bn.js/package.json +40 -0
- package/node_modules/@types/node/LICENSE +21 -0
- package/node_modules/@types/node/README.md +16 -0
- package/node_modules/@types/node/assert.d.ts +84 -0
- package/node_modules/@types/node/async_hooks.d.ts +226 -0
- package/node_modules/@types/node/base.d.ts +20 -0
- package/node_modules/@types/node/buffer.d.ts +22 -0
- package/node_modules/@types/node/child_process.d.ts +505 -0
- package/node_modules/@types/node/cluster.d.ts +262 -0
- package/node_modules/@types/node/console.d.ts +133 -0
- package/node_modules/@types/node/constants.d.ts +8 -0
- package/node_modules/@types/node/crypto.d.ts +707 -0
- package/node_modules/@types/node/dgram.d.ts +141 -0
- package/node_modules/@types/node/dns.d.ts +371 -0
- package/node_modules/@types/node/domain.d.ts +24 -0
- package/node_modules/@types/node/events.d.ts +83 -0
- package/node_modules/@types/node/fs/promises.d.ts +539 -0
- package/node_modules/@types/node/fs.d.ts +2156 -0
- package/node_modules/@types/node/globals.d.ts +606 -0
- package/node_modules/@types/node/globals.global.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +414 -0
- package/node_modules/@types/node/http2.d.ts +952 -0
- package/node_modules/@types/node/https.d.ts +37 -0
- package/node_modules/@types/node/index.d.ts +61 -0
- package/node_modules/@types/node/inspector.d.ts +3041 -0
- package/node_modules/@types/node/module.d.ts +52 -0
- package/node_modules/@types/node/net.d.ts +268 -0
- package/node_modules/@types/node/os.d.ts +239 -0
- package/node_modules/@types/node/package.json +255 -0
- package/node_modules/@types/node/path.d.ts +153 -0
- package/node_modules/@types/node/perf_hooks.d.ts +271 -0
- package/node_modules/@types/node/process.d.ts +406 -0
- package/node_modules/@types/node/punycode.d.ts +12 -0
- package/node_modules/@types/node/querystring.d.ts +28 -0
- package/node_modules/@types/node/readline.d.ts +171 -0
- package/node_modules/@types/node/repl.d.ts +387 -0
- package/node_modules/@types/node/stream.d.ts +351 -0
- package/node_modules/@types/node/string_decoder.d.ts +7 -0
- package/node_modules/@types/node/timers.d.ts +16 -0
- package/node_modules/@types/node/tls.d.ts +777 -0
- package/node_modules/@types/node/trace_events.d.ts +61 -0
- package/node_modules/@types/node/ts3.4/assert.d.ts +57 -0
- package/node_modules/@types/node/ts3.4/base.d.ts +56 -0
- package/node_modules/@types/node/ts3.4/globals.global.d.ts +1 -0
- package/node_modules/@types/node/ts3.4/index.d.ts +8 -0
- package/node_modules/@types/node/ts3.6/base.d.ts +23 -0
- package/node_modules/@types/node/ts3.6/index.d.ts +8 -0
- package/node_modules/@types/node/tty.d.ts +66 -0
- package/node_modules/@types/node/url.d.ts +110 -0
- package/node_modules/@types/node/util.d.ts +196 -0
- package/node_modules/@types/node/v8.d.ts +187 -0
- package/node_modules/@types/node/vm.d.ts +146 -0
- package/node_modules/@types/node/wasi.d.ts +52 -0
- package/node_modules/@types/node/worker_threads.d.ts +192 -0
- package/node_modules/@types/node/zlib.d.ts +352 -0
- package/node_modules/@types/pbkdf2/LICENSE +21 -0
- package/node_modules/@types/pbkdf2/README.md +16 -0
- package/node_modules/@types/pbkdf2/index.d.ts +41 -0
- package/node_modules/@types/pbkdf2/package.json +30 -0
- package/node_modules/@types/secp256k1/LICENSE +21 -0
- package/node_modules/@types/secp256k1/README.md +16 -0
- package/node_modules/@types/secp256k1/index.d.ts +141 -0
- package/node_modules/@types/secp256k1/package.json +30 -0
- package/node_modules/ansi-regex/index.js +14 -0
- package/node_modules/ansi-regex/license +9 -0
- package/node_modules/ansi-regex/package.json +57 -0
- package/node_modules/ansi-regex/readme.md +87 -0
- package/node_modules/ansi-styles/index.js +165 -0
- package/node_modules/ansi-styles/license +9 -0
- package/node_modules/ansi-styles/package.json +60 -0
- package/node_modules/ansi-styles/readme.md +147 -0
- package/node_modules/base-x/LICENSE.md +22 -0
- package/node_modules/base-x/README.md +67 -0
- package/node_modules/base-x/package.json +53 -0
- package/node_modules/base-x/src/index.d.ts +10 -0
- package/node_modules/base-x/src/index.js +123 -0
- package/node_modules/blakejs/.npmignore +1 -0
- package/node_modules/blakejs/.travis.yml +3 -0
- package/node_modules/blakejs/README.md +112 -0
- package/node_modules/blakejs/blake2b.js +273 -0
- package/node_modules/blakejs/blake2s.js +190 -0
- package/node_modules/blakejs/generated_test_vectors.txt +100 -0
- package/node_modules/blakejs/index.js +15 -0
- package/node_modules/blakejs/package.json +27 -0
- package/node_modules/blakejs/test_blake2b.js +88 -0
- package/node_modules/blakejs/test_blake2s.js +80 -0
- package/node_modules/blakejs/util.js +81 -0
- package/node_modules/bn.js/README.md +221 -0
- package/node_modules/bn.js/lib/bn.js +3433 -0
- package/node_modules/bn.js/package.json +40 -0
- package/node_modules/bn.js/util/genCombMulTo.js +65 -0
- package/node_modules/bn.js/util/genCombMulTo10.js +65 -0
- package/node_modules/brorand/.npmignore +2 -0
- package/node_modules/brorand/README.md +26 -0
- package/node_modules/brorand/index.js +65 -0
- package/node_modules/brorand/package.json +35 -0
- package/node_modules/brorand/test/api-test.js +8 -0
- package/node_modules/browserify-aes/.travis.yml +15 -0
- package/node_modules/browserify-aes/LICENSE +21 -0
- package/node_modules/browserify-aes/README.md +19 -0
- package/node_modules/browserify-aes/aes.js +228 -0
- package/node_modules/browserify-aes/authCipher.js +117 -0
- package/node_modules/browserify-aes/browser.js +13 -0
- package/node_modules/browserify-aes/decrypter.js +124 -0
- package/node_modules/browserify-aes/encrypter.js +114 -0
- package/node_modules/browserify-aes/ghash.js +89 -0
- package/node_modules/browserify-aes/incr32.js +15 -0
- package/node_modules/browserify-aes/index.js +7 -0
- package/node_modules/browserify-aes/modes/cbc.js +17 -0
- package/node_modules/browserify-aes/modes/cfb.js +33 -0
- package/node_modules/browserify-aes/modes/cfb1.js +42 -0
- package/node_modules/browserify-aes/modes/cfb8.js +25 -0
- package/node_modules/browserify-aes/modes/ctr.js +30 -0
- package/node_modules/browserify-aes/modes/ecb.js +7 -0
- package/node_modules/browserify-aes/modes/index.js +18 -0
- package/node_modules/browserify-aes/modes/list.json +191 -0
- package/node_modules/browserify-aes/modes/ofb.js +16 -0
- package/node_modules/browserify-aes/package.json +47 -0
- package/node_modules/browserify-aes/streamCipher.js +27 -0
- package/node_modules/bs58/README.md +71 -0
- package/node_modules/bs58/index.js +4 -0
- package/node_modules/bs58/package.json +41 -0
- package/node_modules/bs58check/LICENSE +21 -0
- package/node_modules/bs58check/README.md +27 -0
- package/node_modules/bs58check/base.js +50 -0
- package/node_modules/bs58check/index.js +12 -0
- package/node_modules/bs58check/package.json +56 -0
- package/node_modules/buffer-from/LICENSE +21 -0
- package/node_modules/buffer-from/index.js +69 -0
- package/node_modules/buffer-from/package.json +23 -0
- package/node_modules/buffer-from/readme.md +69 -0
- package/node_modules/buffer-xor/.npmignore +1 -0
- package/node_modules/buffer-xor/.travis.yml +9 -0
- package/node_modules/buffer-xor/LICENSE +21 -0
- package/node_modules/buffer-xor/README.md +41 -0
- package/node_modules/buffer-xor/index.js +10 -0
- package/node_modules/buffer-xor/inline.js +1 -0
- package/node_modules/buffer-xor/inplace.js +9 -0
- package/node_modules/buffer-xor/package.json +41 -0
- package/node_modules/buffer-xor/test/fixtures.json +23 -0
- package/node_modules/buffer-xor/test/index.js +38 -0
- package/node_modules/camelcase/index.d.ts +63 -0
- package/node_modules/camelcase/index.js +76 -0
- package/node_modules/camelcase/license +9 -0
- package/node_modules/camelcase/package.json +47 -0
- package/node_modules/camelcase/readme.md +99 -0
- package/node_modules/cipher-base/.eslintrc +3 -0
- package/node_modules/cipher-base/.npmignore +1 -0
- package/node_modules/cipher-base/.travis.yml +6 -0
- package/node_modules/cipher-base/LICENSE +21 -0
- package/node_modules/cipher-base/README.md +17 -0
- package/node_modules/cipher-base/index.js +99 -0
- package/node_modules/cipher-base/package.json +36 -0
- package/node_modules/cipher-base/test.js +111 -0
- package/node_modules/cliui/LICENSE.txt +14 -0
- package/node_modules/cliui/README.md +115 -0
- package/node_modules/cliui/index.js +324 -0
- package/node_modules/cliui/package.json +71 -0
- package/node_modules/color-convert/LICENSE +21 -0
- package/node_modules/color-convert/README.md +68 -0
- package/node_modules/color-convert/conversions.js +868 -0
- package/node_modules/color-convert/index.js +78 -0
- package/node_modules/color-convert/package.json +50 -0
- package/node_modules/color-convert/route.js +97 -0
- package/node_modules/color-name/.eslintrc.json +43 -0
- package/node_modules/color-name/.npmignore +107 -0
- package/node_modules/color-name/LICENSE +8 -0
- package/node_modules/color-name/README.md +11 -0
- package/node_modules/color-name/index.js +152 -0
- package/node_modules/color-name/package.json +29 -0
- package/node_modules/color-name/test.js +7 -0
- package/node_modules/create-hash/.travis.yml +17 -0
- package/node_modules/create-hash/LICENSE +21 -0
- package/node_modules/create-hash/README.md +19 -0
- package/node_modules/create-hash/browser.js +30 -0
- package/node_modules/create-hash/index.js +1 -0
- package/node_modules/create-hash/md5.js +5 -0
- package/node_modules/create-hash/package.json +43 -0
- package/node_modules/create-hash/test.js +41 -0
- package/node_modules/create-hmac/LICENSE +21 -0
- package/node_modules/create-hmac/README.md +20 -0
- package/node_modules/create-hmac/browser.js +62 -0
- package/node_modules/create-hmac/index.js +1 -0
- package/node_modules/create-hmac/legacy.js +46 -0
- package/node_modules/create-hmac/package.json +49 -0
- package/node_modules/cross-spawn/LICENSE +21 -0
- package/node_modules/cross-spawn/README.md +94 -0
- package/node_modules/cross-spawn/index.js +39 -0
- package/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/node_modules/cross-spawn/lib/parse.js +125 -0
- package/node_modules/cross-spawn/lib/util/escape.js +45 -0
- package/node_modules/cross-spawn/lib/util/readShebang.js +32 -0
- package/node_modules/cross-spawn/lib/util/resolveCommand.js +47 -0
- package/node_modules/cross-spawn/package.json +80 -0
- package/node_modules/decamelize/index.js +13 -0
- package/node_modules/decamelize/license +21 -0
- package/node_modules/decamelize/package.json +42 -0
- package/node_modules/decamelize/readme.md +48 -0
- package/node_modules/elliptic/README.md +238 -0
- package/node_modules/elliptic/lib/elliptic/curve/base.js +376 -0
- package/node_modules/elliptic/lib/elliptic/curve/edwards.js +432 -0
- package/node_modules/elliptic/lib/elliptic/curve/index.js +8 -0
- package/node_modules/elliptic/lib/elliptic/curve/mont.js +178 -0
- package/node_modules/elliptic/lib/elliptic/curve/short.js +937 -0
- package/node_modules/elliptic/lib/elliptic/curves.js +206 -0
- package/node_modules/elliptic/lib/elliptic/ec/index.js +241 -0
- package/node_modules/elliptic/lib/elliptic/ec/key.js +118 -0
- package/node_modules/elliptic/lib/elliptic/ec/signature.js +166 -0
- package/node_modules/elliptic/lib/elliptic/eddsa/index.js +118 -0
- package/node_modules/elliptic/lib/elliptic/eddsa/key.js +95 -0
- package/node_modules/elliptic/lib/elliptic/eddsa/signature.js +65 -0
- package/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js +780 -0
- package/node_modules/elliptic/lib/elliptic/utils.js +119 -0
- package/node_modules/elliptic/lib/elliptic.js +13 -0
- package/node_modules/elliptic/package.json +62 -0
- package/node_modules/emoji-regex/LICENSE-MIT.txt +20 -0
- package/node_modules/emoji-regex/README.md +73 -0
- package/node_modules/emoji-regex/es2015/index.js +6 -0
- package/node_modules/emoji-regex/es2015/text.js +6 -0
- package/node_modules/emoji-regex/index.d.ts +5 -0
- package/node_modules/emoji-regex/index.js +6 -0
- package/node_modules/emoji-regex/package.json +55 -0
- package/node_modules/emoji-regex/text.js +6 -0
- package/node_modules/end-of-stream/LICENSE +21 -0
- package/node_modules/end-of-stream/README.md +54 -0
- package/node_modules/end-of-stream/index.js +94 -0
- package/node_modules/end-of-stream/package.json +41 -0
- package/node_modules/ethereum-cryptography/LICENSE +26 -0
- package/node_modules/ethereum-cryptography/README.md +560 -0
- package/node_modules/ethereum-cryptography/aes.d.ts +4 -0
- package/node_modules/ethereum-cryptography/aes.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/aes.js +38 -0
- package/node_modules/ethereum-cryptography/aes.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/index.d.ts +8 -0
- package/node_modules/ethereum-cryptography/bip39/index.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/index.js +71 -0
- package/node_modules/ethereum-cryptography/bip39/index.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/czech.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/english.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/french.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/italian.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/japanese.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/korean.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/simplified-chinese.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/spanish.js.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.d.ts +2 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.js +2053 -0
- package/node_modules/ethereum-cryptography/bip39/wordlists/traditional-chinese.js.map +1 -0
- package/node_modules/ethereum-cryptography/blake2b.d.ts +3 -0
- package/node_modules/ethereum-cryptography/blake2b.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/blake2b.js +12 -0
- package/node_modules/ethereum-cryptography/blake2b.js.map +1 -0
- package/node_modules/ethereum-cryptography/hash-utils.d.ts +4 -0
- package/node_modules/ethereum-cryptography/hash-utils.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/hash-utils.js +11 -0
- package/node_modules/ethereum-cryptography/hash-utils.js.map +1 -0
- package/node_modules/ethereum-cryptography/hdkey.d.ts +3 -0
- package/node_modules/ethereum-cryptography/hdkey.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/hdkey.js +5 -0
- package/node_modules/ethereum-cryptography/hdkey.js.map +1 -0
- package/node_modules/ethereum-cryptography/index.d.ts +1 -0
- package/node_modules/ethereum-cryptography/index.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/index.js +3 -0
- package/node_modules/ethereum-cryptography/index.js.map +1 -0
- package/node_modules/ethereum-cryptography/keccak.d.ts +6 -0
- package/node_modules/ethereum-cryptography/keccak.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/keccak.js +17 -0
- package/node_modules/ethereum-cryptography/keccak.js.map +1 -0
- package/node_modules/ethereum-cryptography/package.json +131 -0
- package/node_modules/ethereum-cryptography/pbkdf2.d.ts +4 -0
- package/node_modules/ethereum-cryptography/pbkdf2.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pbkdf2.js +27 -0
- package/node_modules/ethereum-cryptography/pbkdf2.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.d.ts +37 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.js +5 -0
- package/node_modules/ethereum-cryptography/pure/hdkey.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.d.ts +3 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.js +6 -0
- package/node_modules/ethereum-cryptography/pure/ripemd160.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/sha256.d.ts +3 -0
- package/node_modules/ethereum-cryptography/pure/sha256.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/sha256.js +6 -0
- package/node_modules/ethereum-cryptography/pure/sha256.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.d.ts +13 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.js +37 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-crypto.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.d.ts +2 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.js +7 -0
- package/node_modules/ethereum-cryptography/pure/shims/hdkey-secp256k1v3.js.map +1 -0
- package/node_modules/ethereum-cryptography/pure/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereum-cryptography/random.d.ts +4 -0
- package/node_modules/ethereum-cryptography/random.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/random.js +20 -0
- package/node_modules/ethereum-cryptography/random.js.map +1 -0
- package/node_modules/ethereum-cryptography/ripemd160.d.ts +3 -0
- package/node_modules/ethereum-cryptography/ripemd160.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/ripemd160.js +11 -0
- package/node_modules/ethereum-cryptography/ripemd160.js.map +1 -0
- package/node_modules/ethereum-cryptography/scrypt.d.ts +5 -0
- package/node_modules/ethereum-cryptography/scrypt.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/scrypt.js +59 -0
- package/node_modules/ethereum-cryptography/scrypt.js.map +1 -0
- package/node_modules/ethereum-cryptography/secp256k1.d.ts +4 -0
- package/node_modules/ethereum-cryptography/secp256k1.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/secp256k1.js +75 -0
- package/node_modules/ethereum-cryptography/secp256k1.js.map +1 -0
- package/node_modules/ethereum-cryptography/sha256.d.ts +3 -0
- package/node_modules/ethereum-cryptography/sha256.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/sha256.js +9 -0
- package/node_modules/ethereum-cryptography/sha256.js.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.d.ts +2 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.js +7 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-crypto.js.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.d.ts +13 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.d.ts.map +1 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.js +47 -0
- package/node_modules/ethereum-cryptography/shims/hdkey-secp256k1v3.js.map +1 -0
- package/node_modules/ethereum-cryptography/src/aes.ts +52 -0
- package/node_modules/ethereum-cryptography/src/bip39/index.ts +40 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/czech.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/english.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/french.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/italian.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/japanese.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/korean.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/simplified-chinese.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/spanish.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/bip39/wordlists/traditional-chinese.ts +2050 -0
- package/node_modules/ethereum-cryptography/src/blake2b.ts +9 -0
- package/node_modules/ethereum-cryptography/src/hash-utils.ts +11 -0
- package/node_modules/ethereum-cryptography/src/hdkey.ts +5 -0
- package/node_modules/ethereum-cryptography/src/index.ts +3 -0
- package/node_modules/ethereum-cryptography/src/keccak.ts +19 -0
- package/node_modules/ethereum-cryptography/src/pbkdf2.ts +37 -0
- package/node_modules/ethereum-cryptography/src/pure/hdkey.ts +36 -0
- package/node_modules/ethereum-cryptography/src/pure/ripemd160.ts +5 -0
- package/node_modules/ethereum-cryptography/src/pure/sha256.ts +5 -0
- package/node_modules/ethereum-cryptography/src/pure/shims/hdkey-crypto.ts +42 -0
- package/node_modules/ethereum-cryptography/src/pure/shims/hdkey-secp256k1v3.ts +1 -0
- package/node_modules/ethereum-cryptography/src/pure/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereum-cryptography/src/random.ts +18 -0
- package/node_modules/ethereum-cryptography/src/ripemd160.ts +7 -0
- package/node_modules/ethereum-cryptography/src/scrypt.ts +24 -0
- package/node_modules/ethereum-cryptography/src/secp256k1.ts +24 -0
- package/node_modules/ethereum-cryptography/src/sha256.ts +5 -0
- package/node_modules/ethereum-cryptography/src/shims/hdkey-crypto.ts +1 -0
- package/node_modules/ethereum-cryptography/src/shims/hdkey-secp256k1v3.ts +49 -0
- package/node_modules/ethereum-cryptography/src/vendor/bip39-without-wordlists.js +206 -0
- package/node_modules/ethereum-cryptography/src/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereum-cryptography/vendor/bip39-without-wordlists.js +206 -0
- package/node_modules/ethereum-cryptography/vendor/hdkey-without-crypto.js +255 -0
- package/node_modules/ethereumjs-util/LICENSE +373 -0
- package/node_modules/ethereumjs-util/README.md +32 -0
- package/node_modules/ethereumjs-util/dist/account.d.ts +80 -0
- package/node_modules/ethereumjs-util/dist/account.js +168 -0
- package/node_modules/ethereumjs-util/dist/account.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/bytes.d.ts +68 -0
- package/node_modules/ethereumjs-util/dist/bytes.js +158 -0
- package/node_modules/ethereumjs-util/dist/bytes.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/constants.d.ts +34 -0
- package/node_modules/ethereumjs-util/dist/constants.js +37 -0
- package/node_modules/ethereumjs-util/dist/constants.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/hash.d.ts +30 -0
- package/node_modules/ethereumjs-util/dist/hash.js +84 -0
- package/node_modules/ethereumjs-util/dist/hash.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/index.d.ts +39 -0
- package/node_modules/ethereumjs-util/dist/index.js +46 -0
- package/node_modules/ethereumjs-util/dist/index.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/object.d.ts +12 -0
- package/node_modules/ethereumjs-util/dist/object.js +106 -0
- package/node_modules/ethereumjs-util/dist/object.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-adapter.d.ts +178 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-adapter.js +300 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-adapter.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/der.d.ts +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/der.js +634 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/der.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/index.d.ts +5 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/index.js +61 -0
- package/node_modules/ethereumjs-util/dist/secp256k1v3-lib/index.js.map +1 -0
- package/node_modules/ethereumjs-util/dist/signature.d.ts +37 -0
- package/node_modules/ethereumjs-util/dist/signature.js +107 -0
- package/node_modules/ethereumjs-util/dist/signature.js.map +1 -0
- package/node_modules/ethereumjs-util/package.json +131 -0
- package/node_modules/ethjs-util/LICENSE +21 -0
- package/node_modules/ethjs-util/README.md +143 -0
- package/node_modules/ethjs-util/dist/ethjs-util.js +2420 -0
- package/node_modules/ethjs-util/dist/ethjs-util.js.map +1 -0
- package/node_modules/ethjs-util/dist/ethjs-util.min.js +1 -0
- package/node_modules/ethjs-util/internals/webpack/webpack.config.js +58 -0
- package/node_modules/ethjs-util/lib/index.js +220 -0
- package/node_modules/ethjs-util/lib/tests/test.index.js +357 -0
- package/node_modules/ethjs-util/package.json +229 -0
- package/node_modules/ethjs-util/src/index.js +203 -0
- package/node_modules/ethjs-util/src/tests/test.index.js +382 -0
- package/node_modules/evp_bytestokey/LICENSE +21 -0
- package/node_modules/evp_bytestokey/README.md +51 -0
- package/node_modules/evp_bytestokey/index.js +45 -0
- package/node_modules/evp_bytestokey/package.json +49 -0
- package/node_modules/execa/index.js +361 -0
- package/node_modules/execa/lib/errname.js +39 -0
- package/node_modules/execa/lib/stdio.js +41 -0
- package/node_modules/execa/license +9 -0
- package/node_modules/execa/package.json +73 -0
- package/node_modules/execa/readme.md +327 -0
- package/node_modules/find-up/index.js +46 -0
- package/node_modules/find-up/license +9 -0
- package/node_modules/find-up/package.json +54 -0
- package/node_modules/find-up/readme.md +87 -0
- package/node_modules/get-caller-file/LICENSE.md +6 -0
- package/node_modules/get-caller-file/README.md +41 -0
- package/node_modules/get-caller-file/index.d.ts +2 -0
- package/node_modules/get-caller-file/index.js +22 -0
- package/node_modules/get-caller-file/index.js.map +1 -0
- package/node_modules/get-caller-file/package.json +46 -0
- package/node_modules/get-stream/buffer-stream.js +51 -0
- package/node_modules/get-stream/index.js +50 -0
- package/node_modules/get-stream/license +9 -0
- package/node_modules/get-stream/package.json +50 -0
- package/node_modules/get-stream/readme.md +123 -0
- package/node_modules/hash-base/LICENSE +21 -0
- package/node_modules/hash-base/README.md +48 -0
- package/node_modules/hash-base/index.js +95 -0
- package/node_modules/hash-base/package.json +46 -0
- package/node_modules/hash.js/.eslintrc.js +41 -0
- package/node_modules/hash.js/.travis.yml +10 -0
- package/node_modules/hash.js/README.md +48 -0
- package/node_modules/hash.js/lib/hash/common.js +92 -0
- package/node_modules/hash.js/lib/hash/hmac.js +47 -0
- package/node_modules/hash.js/lib/hash/ripemd.js +146 -0
- package/node_modules/hash.js/lib/hash/sha/1.js +74 -0
- package/node_modules/hash.js/lib/hash/sha/224.js +30 -0
- package/node_modules/hash.js/lib/hash/sha/256.js +105 -0
- package/node_modules/hash.js/lib/hash/sha/384.js +35 -0
- package/node_modules/hash.js/lib/hash/sha/512.js +330 -0
- package/node_modules/hash.js/lib/hash/sha/common.js +49 -0
- package/node_modules/hash.js/lib/hash/sha.js +7 -0
- package/node_modules/hash.js/lib/hash/utils.js +278 -0
- package/node_modules/hash.js/lib/hash.d.ts +106 -0
- package/node_modules/hash.js/lib/hash.js +15 -0
- package/node_modules/hash.js/package.json +39 -0
- package/node_modules/hash.js/test/hash-test.js +140 -0
- package/node_modules/hash.js/test/hmac-test.js +62 -0
- package/node_modules/hmac-drbg/.npmignore +2 -0
- package/node_modules/hmac-drbg/.travis.yml +11 -0
- package/node_modules/hmac-drbg/README.md +48 -0
- package/node_modules/hmac-drbg/lib/hmac-drbg.js +113 -0
- package/node_modules/hmac-drbg/package.json +36 -0
- package/node_modules/hmac-drbg/test/drbg-test.js +91 -0
- package/node_modules/hmac-drbg/test/fixtures/hmac-drbg-nist.json +332 -0
- package/node_modules/inherits/LICENSE +16 -0
- package/node_modules/inherits/README.md +42 -0
- package/node_modules/inherits/inherits.js +9 -0
- package/node_modules/inherits/inherits_browser.js +27 -0
- package/node_modules/inherits/package.json +33 -0
- package/node_modules/invert-kv/index.js +15 -0
- package/node_modules/invert-kv/license +9 -0
- package/node_modules/invert-kv/package.json +36 -0
- package/node_modules/invert-kv/readme.md +25 -0
- package/node_modules/is-fullwidth-code-point/index.js +46 -0
- package/node_modules/is-fullwidth-code-point/license +21 -0
- package/node_modules/is-fullwidth-code-point/package.json +49 -0
- package/node_modules/is-fullwidth-code-point/readme.md +39 -0
- package/node_modules/is-hex-prefixed/.editorconfig +7 -0
- package/node_modules/is-hex-prefixed/.gitattributes +106 -0
- package/node_modules/is-hex-prefixed/.npmignore +8 -0
- package/node_modules/is-hex-prefixed/.travis.yml +5 -0
- package/node_modules/is-hex-prefixed/CHANGELOG.md +7 -0
- package/node_modules/is-hex-prefixed/LICENSE +21 -0
- package/node_modules/is-hex-prefixed/README.md +101 -0
- package/node_modules/is-hex-prefixed/package.json +43 -0
- package/node_modules/is-hex-prefixed/src/index.js +13 -0
- package/node_modules/is-hex-prefixed/src/tests/test.index.js +66 -0
- package/node_modules/is-stream/index.js +21 -0
- package/node_modules/is-stream/license +21 -0
- package/node_modules/is-stream/package.json +42 -0
- package/node_modules/is-stream/readme.md +42 -0
- package/node_modules/isexe/.npmignore +2 -0
- package/node_modules/isexe/LICENSE +15 -0
- package/node_modules/isexe/README.md +51 -0
- package/node_modules/isexe/index.js +57 -0
- package/node_modules/isexe/mode.js +41 -0
- package/node_modules/isexe/package.json +35 -0
- package/node_modules/isexe/test/basic.js +221 -0
- package/node_modules/isexe/windows.js +42 -0
- package/node_modules/keccak/LICENSE +21 -0
- package/node_modules/keccak/README.md +64 -0
- package/node_modules/keccak/binding.gyp +78 -0
- package/node_modules/keccak/bindings.js +1 -0
- package/node_modules/keccak/index.js +5 -0
- package/node_modules/keccak/js.js +1 -0
- package/node_modules/keccak/lib/api/index.js +27 -0
- package/node_modules/keccak/lib/api/keccak.js +77 -0
- package/node_modules/keccak/lib/api/shake.js +68 -0
- package/node_modules/keccak/lib/keccak-state-reference.js +143 -0
- package/node_modules/keccak/lib/keccak-state-unroll.js +186 -0
- package/node_modules/keccak/lib/keccak.js +68 -0
- package/node_modules/keccak/package.json +41 -0
- package/node_modules/keccak/prebuilds/darwin-x64/node.napi.node +0 -0
- package/node_modules/keccak/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/node_modules/keccak/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/node_modules/keccak/prebuilds/win32-x64/node.napi.node +0 -0
- package/node_modules/keccak/src/README.md +28 -0
- package/node_modules/keccak/src/addon.cc +98 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakP-1600-SnP.h +38 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakP-1600-inplace32BI.c +1162 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSponge-common.h +35 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSponge.inc +311 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSpongeWidth1600.c +54 -0
- package/node_modules/keccak/src/libkeccak-32/KeccakSpongeWidth1600.h +31 -0
- package/node_modules/keccak/src/libkeccak-32/SnP-Relaned.h +140 -0
- package/node_modules/keccak/src/libkeccak-32/align.h +32 -0
- package/node_modules/keccak/src/libkeccak-32/brg_endian.h +143 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-64.macros +745 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-SnP.h +51 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-opt64-config.h +6 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-opt64.c +564 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakP-1600-unrolling.macros +302 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSponge-common.h +35 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSponge.inc +311 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSpongeWidth1600.c +54 -0
- package/node_modules/keccak/src/libkeccak-64/KeccakSpongeWidth1600.h +31 -0
- package/node_modules/keccak/src/libkeccak-64/SnP-Relaned.h +140 -0
- package/node_modules/keccak/src/libkeccak-64/align.h +32 -0
- package/node_modules/keccak/src/libkeccak-64/brg_endian.h +143 -0
- package/node_modules/lcid/index.js +23 -0
- package/node_modules/lcid/lcid.json +203 -0
- package/node_modules/lcid/license +9 -0
- package/node_modules/lcid/package.json +51 -0
- package/node_modules/lcid/readme.md +35 -0
- package/node_modules/locate-path/index.js +24 -0
- package/node_modules/locate-path/license +9 -0
- package/node_modules/locate-path/package.json +48 -0
- package/node_modules/locate-path/readme.md +99 -0
- package/node_modules/map-age-cleaner/dist/index.d.ts +20 -0
- package/node_modules/map-age-cleaner/dist/index.js +92 -0
- package/node_modules/map-age-cleaner/license +9 -0
- package/node_modules/map-age-cleaner/package.json +63 -0
- package/node_modules/map-age-cleaner/readme.md +67 -0
- package/node_modules/md5.js/LICENSE +21 -0
- package/node_modules/md5.js/README.md +29 -0
- package/node_modules/md5.js/index.js +146 -0
- package/node_modules/md5.js/package.json +42 -0
- package/node_modules/mem/index.d.ts +96 -0
- package/node_modules/mem/index.js +88 -0
- package/node_modules/mem/license +9 -0
- package/node_modules/mem/package.json +50 -0
- package/node_modules/mem/readme.md +167 -0
- package/node_modules/mimic-fn/index.d.ts +54 -0
- package/node_modules/mimic-fn/index.js +13 -0
- package/node_modules/mimic-fn/license +9 -0
- package/node_modules/mimic-fn/package.json +46 -0
- package/node_modules/mimic-fn/readme.md +69 -0
- package/node_modules/minimalistic-assert/LICENSE +13 -0
- package/node_modules/minimalistic-assert/index.js +11 -0
- package/node_modules/minimalistic-assert/package.json +23 -0
- package/node_modules/minimalistic-assert/readme.md +4 -0
- package/node_modules/minimalistic-crypto-utils/.npmignore +2 -0
- package/node_modules/minimalistic-crypto-utils/.travis.yml +11 -0
- package/node_modules/minimalistic-crypto-utils/README.md +47 -0
- package/node_modules/minimalistic-crypto-utils/lib/utils.js +58 -0
- package/node_modules/minimalistic-crypto-utils/package.json +31 -0
- package/node_modules/minimalistic-crypto-utils/test/utils-test.js +28 -0
- package/node_modules/nice-try/LICENSE +21 -0
- package/node_modules/nice-try/README.md +32 -0
- package/node_modules/nice-try/package.json +37 -0
- package/node_modules/nice-try/src/index.js +12 -0
- package/node_modules/node-addon-api/.editorconfig +8 -0
- package/node_modules/node-addon-api/.travis.yml +62 -0
- package/node_modules/node-addon-api/CHANGELOG.md +412 -0
- package/node_modules/node-addon-api/CODE_OF_CONDUCT.md +4 -0
- package/node_modules/node-addon-api/CONTRIBUTING.md +66 -0
- package/node_modules/node-addon-api/LICENSE.md +13 -0
- package/node_modules/node-addon-api/README.md +203 -0
- package/node_modules/node-addon-api/appveyor.yml +48 -0
- package/node_modules/node-addon-api/doc/Doxyfile +2450 -0
- package/node_modules/node-addon-api/doc/array_buffer.md +129 -0
- package/node_modules/node-addon-api/doc/async_context.md +86 -0
- package/node_modules/node-addon-api/doc/async_operations.md +31 -0
- package/node_modules/node-addon-api/doc/async_progress_worker.md +344 -0
- package/node_modules/node-addon-api/doc/async_worker.md +398 -0
- package/node_modules/node-addon-api/doc/basic_types.md +423 -0
- package/node_modules/node-addon-api/doc/bigint.md +92 -0
- package/node_modules/node-addon-api/doc/boolean.md +64 -0
- package/node_modules/node-addon-api/doc/buffer.md +140 -0
- package/node_modules/node-addon-api/doc/callback_scope.md +54 -0
- package/node_modules/node-addon-api/doc/callbackinfo.md +97 -0
- package/node_modules/node-addon-api/doc/checker-tool.md +32 -0
- package/node_modules/node-addon-api/doc/class_property_descriptor.md +117 -0
- package/node_modules/node-addon-api/doc/cmake-js.md +68 -0
- package/node_modules/node-addon-api/doc/conversion-tool.md +28 -0
- package/node_modules/node-addon-api/doc/creating_a_release.md +62 -0
- package/node_modules/node-addon-api/doc/dataview.md +244 -0
- package/node_modules/node-addon-api/doc/date.md +68 -0
- package/node_modules/node-addon-api/doc/env.md +63 -0
- package/node_modules/node-addon-api/doc/error.md +115 -0
- package/node_modules/node-addon-api/doc/error_handling.md +186 -0
- package/node_modules/node-addon-api/doc/escapable_handle_scope.md +82 -0
- package/node_modules/node-addon-api/doc/external.md +59 -0
- package/node_modules/node-addon-api/doc/function.md +294 -0
- package/node_modules/node-addon-api/doc/function_reference.md +238 -0
- package/node_modules/node-addon-api/doc/generator.md +13 -0
- package/node_modules/node-addon-api/doc/handle_scope.md +65 -0
- package/node_modules/node-addon-api/doc/memory_management.md +27 -0
- package/node_modules/node-addon-api/doc/node-gyp.md +82 -0
- package/node_modules/node-addon-api/doc/number.md +163 -0
- package/node_modules/node-addon-api/doc/object.md +236 -0
- package/node_modules/node-addon-api/doc/object_lifetime_management.md +83 -0
- package/node_modules/node-addon-api/doc/object_reference.md +117 -0
- package/node_modules/node-addon-api/doc/object_wrap.md +557 -0
- package/node_modules/node-addon-api/doc/prebuild_tools.md +16 -0
- package/node_modules/node-addon-api/doc/promises.md +74 -0
- package/node_modules/node-addon-api/doc/property_descriptor.md +231 -0
- package/node_modules/node-addon-api/doc/range_error.md +59 -0
- package/node_modules/node-addon-api/doc/reference.md +111 -0
- package/node_modules/node-addon-api/doc/setup.md +82 -0
- package/node_modules/node-addon-api/doc/string.md +89 -0
- package/node_modules/node-addon-api/doc/symbol.md +44 -0
- package/node_modules/node-addon-api/doc/threadsafe_function.md +320 -0
- package/node_modules/node-addon-api/doc/type_error.md +59 -0
- package/node_modules/node-addon-api/doc/typed_array.md +74 -0
- package/node_modules/node-addon-api/doc/typed_array_of.md +133 -0
- package/node_modules/node-addon-api/doc/value.md +278 -0
- package/node_modules/node-addon-api/doc/version_management.md +43 -0
- package/node_modules/node-addon-api/doc/working_with_javascript_values.md +14 -0
- package/node_modules/node-addon-api/external-napi/node_api.h +7 -0
- package/node_modules/node-addon-api/index.js +45 -0
- package/node_modules/node-addon-api/napi-inl.deprecated.h +192 -0
- package/node_modules/node-addon-api/napi-inl.h +4412 -0
- package/node_modules/node-addon-api/napi.h +2173 -0
- package/node_modules/node-addon-api/package.json +248 -0
- package/node_modules/node-addon-api/src/node_api.cc +3655 -0
- package/node_modules/node-addon-api/src/node_api.gyp +21 -0
- package/node_modules/node-addon-api/src/node_api.h +588 -0
- package/node_modules/node-addon-api/src/node_api_types.h +115 -0
- package/node_modules/node-addon-api/src/node_internals.cc +142 -0
- package/node_modules/node-addon-api/src/node_internals.h +157 -0
- package/node_modules/node-addon-api/src/nothing.c +0 -0
- package/node_modules/node-addon-api/src/util-inl.h +38 -0
- package/node_modules/node-addon-api/src/util.h +7 -0
- package/node_modules/node-addon-api/tools/README.md +67 -0
- package/node_modules/node-addon-api/tools/check-napi.js +100 -0
- package/node_modules/node-addon-api/tools/conversion.js +313 -0
- package/node_modules/node-gyp-build/LICENSE +21 -0
- package/node_modules/node-gyp-build/README.md +58 -0
- package/node_modules/node-gyp-build/bin.js +77 -0
- package/node_modules/node-gyp-build/build-test.js +19 -0
- package/node_modules/node-gyp-build/index.js +166 -0
- package/node_modules/node-gyp-build/optional.js +7 -0
- package/node_modules/node-gyp-build/package.json +33 -0
- package/node_modules/npm-run-path/index.js +39 -0
- package/node_modules/npm-run-path/license +21 -0
- package/node_modules/npm-run-path/package.json +49 -0
- package/node_modules/npm-run-path/readme.md +81 -0
- package/node_modules/once/LICENSE +15 -0
- package/node_modules/once/README.md +79 -0
- package/node_modules/once/once.js +42 -0
- package/node_modules/once/package.json +37 -0
- package/node_modules/os-locale/index.js +114 -0
- package/node_modules/os-locale/license +9 -0
- package/node_modules/os-locale/package.json +49 -0
- package/node_modules/os-locale/readme.md +71 -0
- package/node_modules/p-defer/index.js +11 -0
- package/node_modules/p-defer/license +21 -0
- package/node_modules/p-defer/package.json +45 -0
- package/node_modules/p-defer/readme.md +47 -0
- package/node_modules/p-finally/index.js +15 -0
- package/node_modules/p-finally/license +21 -0
- package/node_modules/p-finally/package.json +46 -0
- package/node_modules/p-finally/readme.md +47 -0
- package/node_modules/p-is-promise/index.d.ts +23 -0
- package/node_modules/p-is-promise/index.js +15 -0
- package/node_modules/p-is-promise/license +9 -0
- package/node_modules/p-is-promise/package.json +46 -0
- package/node_modules/p-is-promise/readme.md +43 -0
- package/node_modules/p-limit/index.d.ts +38 -0
- package/node_modules/p-limit/index.js +57 -0
- package/node_modules/p-limit/license +9 -0
- package/node_modules/p-limit/package.json +56 -0
- package/node_modules/p-limit/readme.md +101 -0
- package/node_modules/p-locate/index.js +34 -0
- package/node_modules/p-locate/license +9 -0
- package/node_modules/p-locate/package.json +55 -0
- package/node_modules/p-locate/readme.md +88 -0
- package/node_modules/p-try/index.d.ts +39 -0
- package/node_modules/p-try/index.js +9 -0
- package/node_modules/p-try/license +9 -0
- package/node_modules/p-try/package.json +46 -0
- package/node_modules/p-try/readme.md +58 -0
- package/node_modules/path-exists/index.js +17 -0
- package/node_modules/path-exists/license +21 -0
- package/node_modules/path-exists/package.json +44 -0
- package/node_modules/path-exists/readme.md +50 -0
- package/node_modules/path-key/index.js +13 -0
- package/node_modules/path-key/license +21 -0
- package/node_modules/path-key/package.json +43 -0
- package/node_modules/path-key/readme.md +51 -0
- package/node_modules/pbkdf2/LICENSE +21 -0
- package/node_modules/pbkdf2/README.md +30 -0
- package/node_modules/pbkdf2/browser.js +2 -0
- package/node_modules/pbkdf2/index.js +38 -0
- package/node_modules/pbkdf2/lib/async.js +102 -0
- package/node_modules/pbkdf2/lib/default-encoding.js +12 -0
- package/node_modules/pbkdf2/lib/precondition.js +19 -0
- package/node_modules/pbkdf2/lib/sync-browser.js +105 -0
- package/node_modules/pbkdf2/lib/sync.js +52 -0
- package/node_modules/pbkdf2/lib/to-buffer.js +13 -0
- package/node_modules/pbkdf2/package.json +74 -0
- package/node_modules/pump/.travis.yml +5 -0
- package/node_modules/pump/LICENSE +21 -0
- package/node_modules/pump/README.md +65 -0
- package/node_modules/pump/index.js +82 -0
- package/node_modules/pump/package.json +28 -0
- package/node_modules/pump/test-browser.js +66 -0
- package/node_modules/pump/test-node.js +53 -0
- package/node_modules/randombytes/.travis.yml +15 -0
- package/node_modules/randombytes/.zuul.yml +1 -0
- package/node_modules/randombytes/LICENSE +21 -0
- package/node_modules/randombytes/README.md +14 -0
- package/node_modules/randombytes/browser.js +50 -0
- package/node_modules/randombytes/index.js +1 -0
- package/node_modules/randombytes/package.json +40 -0
- package/node_modules/randombytes/test.js +81 -0
- package/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/node_modules/readable-stream/LICENSE +47 -0
- package/node_modules/readable-stream/README.md +106 -0
- package/node_modules/readable-stream/errors-browser.js +127 -0
- package/node_modules/readable-stream/errors.js +116 -0
- package/node_modules/readable-stream/experimentalWarning.js +17 -0
- package/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- package/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- package/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- package/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- package/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- package/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- package/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- package/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- package/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- package/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- package/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- package/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/node_modules/readable-stream/package.json +72 -0
- package/node_modules/readable-stream/readable-browser.js +9 -0
- package/node_modules/readable-stream/readable.js +16 -0
- package/node_modules/require-directory/.jshintrc +67 -0
- package/node_modules/require-directory/.npmignore +1 -0
- package/node_modules/require-directory/.travis.yml +3 -0
- package/node_modules/require-directory/LICENSE +22 -0
- package/node_modules/require-directory/README.markdown +184 -0
- package/node_modules/require-directory/index.js +86 -0
- package/node_modules/require-directory/package.json +44 -0
- package/node_modules/require-main-filename/LICENSE.txt +14 -0
- package/node_modules/require-main-filename/README.md +26 -0
- package/node_modules/require-main-filename/index.js +18 -0
- package/node_modules/require-main-filename/package.json +39 -0
- package/node_modules/ripemd160/LICENSE +21 -0
- package/node_modules/ripemd160/README.md +27 -0
- package/node_modules/ripemd160/index.js +163 -0
- package/node_modules/ripemd160/package.json +41 -0
- package/node_modules/rlp/LICENSE +373 -0
- package/node_modules/rlp/README.md +58 -0
- package/node_modules/rlp/bin/rlp +35 -0
- package/node_modules/rlp/dist/index.d.ts +25 -0
- package/node_modules/rlp/dist/index.js +249 -0
- package/node_modules/rlp/dist/index.js.map +1 -0
- package/node_modules/rlp/dist/types.d.ts +9 -0
- package/node_modules/rlp/dist/types.js +3 -0
- package/node_modules/rlp/dist/types.js.map +1 -0
- package/node_modules/rlp/package.json +84 -0
- package/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/safe-buffer/package.json +55 -0
- package/node_modules/scrypt-js/LICENSE.txt +22 -0
- package/node_modules/scrypt-js/README.md +222 -0
- package/node_modules/scrypt-js/index.html +291 -0
- package/node_modules/scrypt-js/package.json +31 -0
- package/node_modules/scrypt-js/scrypt.d.ts +23 -0
- package/node_modules/scrypt-js/scrypt.js +488 -0
- package/node_modules/scrypt-js/thirdparty/buffer.js +1381 -0
- package/node_modules/scrypt-js/thirdparty/setImmediate.js +175 -0
- package/node_modules/scrypt-js/thirdparty/unorm.js +442 -0
- package/node_modules/secp256k1/API.md +116 -0
- package/node_modules/secp256k1/LICENSE +24 -0
- package/node_modules/secp256k1/README.md +117 -0
- package/node_modules/secp256k1/binding.gyp +100 -0
- package/node_modules/secp256k1/bindings.js +2 -0
- package/node_modules/secp256k1/elliptic.js +1 -0
- package/node_modules/secp256k1/index.js +5 -0
- package/node_modules/secp256k1/lib/elliptic.js +402 -0
- package/node_modules/secp256k1/lib/index.js +336 -0
- package/node_modules/secp256k1/package.json +47 -0
- package/node_modules/secp256k1/prebuilds/darwin-x64/node.napi.node +0 -0
- package/node_modules/secp256k1/prebuilds/linux-x64/node.napi.glibc.node +0 -0
- package/node_modules/secp256k1/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/node_modules/secp256k1/prebuilds/win32-x64/node.napi.node +0 -0
- package/node_modules/secp256k1/src/addon.cc +10 -0
- package/node_modules/secp256k1/src/secp256k1/.travis.yml +100 -0
- package/node_modules/secp256k1/src/secp256k1/COPYING +19 -0
- package/node_modules/secp256k1/src/secp256k1/Makefile.am +183 -0
- package/node_modules/secp256k1/src/secp256k1/README.md +78 -0
- package/node_modules/secp256k1/src/secp256k1/SECURITY.md +15 -0
- package/node_modules/secp256k1/src/secp256k1/TODO +3 -0
- package/node_modules/secp256k1/src/secp256k1/autogen.sh +3 -0
- package/node_modules/secp256k1/src/secp256k1/build-aux/m4/ax_jni_include_dir.m4 +145 -0
- package/node_modules/secp256k1/src/secp256k1/build-aux/m4/ax_prog_cc_for_build.m4 +125 -0
- package/node_modules/secp256k1/src/secp256k1/build-aux/m4/bitcoin_secp.m4 +68 -0
- package/node_modules/secp256k1/src/secp256k1/configure.ac +591 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_parsing.c +150 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_parsing.h +91 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_privatekey_parsing.c +113 -0
- package/node_modules/secp256k1/src/secp256k1/contrib/lax_der_privatekey_parsing.h +90 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1.h +708 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1_ecdh.h +55 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1_preallocated.h +128 -0
- package/node_modules/secp256k1/src/secp256k1/include/secp256k1_recovery.h +110 -0
- package/node_modules/secp256k1/src/secp256k1/libsecp256k1.pc.in +13 -0
- package/node_modules/secp256k1/src/secp256k1/sage/group_prover.sage +322 -0
- package/node_modules/secp256k1/src/secp256k1/sage/secp256k1.sage +306 -0
- package/node_modules/secp256k1/src/secp256k1/sage/weierstrass_prover.sage +264 -0
- package/node_modules/secp256k1/src/secp256k1/src/asm/field_10x26_arm.s +913 -0
- package/node_modules/secp256k1/src/secp256k1/src/basic-config.h +38 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench.h +124 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_ecdh.c +54 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_ecmult.c +207 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_internal.c +379 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_recover.c +60 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_sign.c +56 -0
- package/node_modules/secp256k1/src/secp256k1/src/bench_verify.c +112 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecdsa.h +21 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecdsa_impl.h +319 -0
- package/node_modules/secp256k1/src/secp256k1/src/eckey.h +25 -0
- package/node_modules/secp256k1/src/secp256k1/src/eckey_impl.h +100 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult.h +48 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_const.h +20 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_const_impl.h +261 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_gen.h +50 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_gen_impl.h +211 -0
- package/node_modules/secp256k1/src/secp256k1/src/ecmult_impl.h +1216 -0
- package/node_modules/secp256k1/src/secp256k1/src/field.h +132 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_10x26.h +50 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_10x26_impl.h +1162 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52.h +49 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52_asm_impl.h +502 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52_impl.h +496 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_5x52_int128_impl.h +279 -0
- package/node_modules/secp256k1/src/secp256k1/src/field_impl.h +318 -0
- package/node_modules/secp256k1/src/secp256k1/src/gen_context.c +87 -0
- package/node_modules/secp256k1/src/secp256k1/src/group.h +142 -0
- package/node_modules/secp256k1/src/secp256k1/src/group_impl.h +705 -0
- package/node_modules/secp256k1/src/secp256k1/src/hash.h +41 -0
- package/node_modules/secp256k1/src/secp256k1/src/hash_impl.h +283 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/NativeSecp256k1.java +446 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/NativeSecp256k1Test.java +225 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/NativeSecp256k1Util.java +45 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org/bitcoin/Secp256k1Context.java +51 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.c +379 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_NativeSecp256k1.h +119 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_Secp256k1Context.c +15 -0
- package/node_modules/secp256k1/src/secp256k1/src/java/org_bitcoin_Secp256k1Context.h +22 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/ecdh/Makefile.am.include +8 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/ecdh/main_impl.h +67 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/ecdh/tests_impl.h +132 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/recovery/Makefile.am.include +8 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/recovery/main_impl.h +193 -0
- package/node_modules/secp256k1/src/secp256k1/src/modules/recovery/tests_impl.h +393 -0
- package/node_modules/secp256k1/src/secp256k1/src/num.h +74 -0
- package/node_modules/secp256k1/src/secp256k1/src/num_gmp.h +20 -0
- package/node_modules/secp256k1/src/secp256k1/src/num_gmp_impl.h +288 -0
- package/node_modules/secp256k1/src/secp256k1/src/num_impl.h +24 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar.h +106 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_4x64.h +19 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_4x64_impl.h +949 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_8x32.h +19 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_8x32_impl.h +721 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_impl.h +333 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_low.h +15 -0
- package/node_modules/secp256k1/src/secp256k1/src/scalar_low_impl.h +117 -0
- package/node_modules/secp256k1/src/secp256k1/src/scratch.h +42 -0
- package/node_modules/secp256k1/src/secp256k1/src/scratch_impl.h +88 -0
- package/node_modules/secp256k1/src/secp256k1/src/secp256k1.c +690 -0
- package/node_modules/secp256k1/src/secp256k1/src/testrand.h +38 -0
- package/node_modules/secp256k1/src/secp256k1/src/testrand_impl.h +110 -0
- package/node_modules/secp256k1/src/secp256k1/src/tests.c +5310 -0
- package/node_modules/secp256k1/src/secp256k1/src/tests_exhaustive.c +511 -0
- package/node_modules/secp256k1/src/secp256k1/src/util.h +162 -0
- package/node_modules/secp256k1/src/secp256k1.cc +415 -0
- package/node_modules/secp256k1/src/secp256k1.h +63 -0
- package/node_modules/semver/LICENSE +15 -0
- package/node_modules/semver/README.md +412 -0
- package/node_modules/semver/bin/semver +160 -0
- package/node_modules/semver/package.json +32 -0
- package/node_modules/semver/range.bnf +16 -0
- package/node_modules/semver/semver.js +1483 -0
- package/node_modules/set-blocking/LICENSE.txt +14 -0
- package/node_modules/set-blocking/README.md +31 -0
- package/node_modules/set-blocking/index.js +7 -0
- package/node_modules/set-blocking/package.json +46 -0
- package/node_modules/setimmediate/LICENSE.txt +20 -0
- package/node_modules/setimmediate/package.json +34 -0
- package/node_modules/setimmediate/setImmediate.js +186 -0
- package/node_modules/sha.js/.travis.yml +17 -0
- package/node_modules/sha.js/LICENSE +49 -0
- package/node_modules/sha.js/README.md +44 -0
- package/node_modules/sha.js/bin.js +41 -0
- package/node_modules/sha.js/hash.js +81 -0
- package/node_modules/sha.js/index.js +15 -0
- package/node_modules/sha.js/package.json +34 -0
- package/node_modules/sha.js/sha.js +94 -0
- package/node_modules/sha.js/sha1.js +99 -0
- package/node_modules/sha.js/sha224.js +53 -0
- package/node_modules/sha.js/sha256.js +135 -0
- package/node_modules/sha.js/sha384.js +57 -0
- package/node_modules/sha.js/sha512.js +260 -0
- package/node_modules/sha.js/test/hash.js +75 -0
- package/node_modules/sha.js/test/test.js +100 -0
- package/node_modules/sha.js/test/vectors.js +72 -0
- package/node_modules/shebang-command/index.js +19 -0
- package/node_modules/shebang-command/license +21 -0
- package/node_modules/shebang-command/package.json +43 -0
- package/node_modules/shebang-command/readme.md +39 -0
- package/node_modules/shebang-regex/index.js +2 -0
- package/node_modules/shebang-regex/license +21 -0
- package/node_modules/shebang-regex/package.json +36 -0
- package/node_modules/shebang-regex/readme.md +29 -0
- package/node_modules/signal-exit/LICENSE.txt +16 -0
- package/node_modules/signal-exit/README.md +39 -0
- package/node_modules/signal-exit/index.js +163 -0
- package/node_modules/signal-exit/package.json +42 -0
- package/node_modules/signal-exit/signals.js +53 -0
- package/node_modules/source-map/LICENSE +28 -0
- package/node_modules/source-map/README.md +742 -0
- package/node_modules/source-map/dist/source-map.debug.js +3234 -0
- package/node_modules/source-map/dist/source-map.js +3233 -0
- package/node_modules/source-map/dist/source-map.min.js +2 -0
- package/node_modules/source-map/dist/source-map.min.js.map +1 -0
- package/node_modules/source-map/lib/array-set.js +121 -0
- package/node_modules/source-map/lib/base64-vlq.js +140 -0
- package/node_modules/source-map/lib/base64.js +67 -0
- package/node_modules/source-map/lib/binary-search.js +111 -0
- package/node_modules/source-map/lib/mapping-list.js +79 -0
- package/node_modules/source-map/lib/quick-sort.js +114 -0
- package/node_modules/source-map/lib/source-map-consumer.js +1145 -0
- package/node_modules/source-map/lib/source-map-generator.js +425 -0
- package/node_modules/source-map/lib/source-node.js +413 -0
- package/node_modules/source-map/lib/util.js +488 -0
- package/node_modules/source-map/package.json +77 -0
- package/node_modules/source-map/source-map.d.ts +98 -0
- package/node_modules/source-map/source-map.js +8 -0
- package/node_modules/source-map-support/LICENSE.md +21 -0
- package/node_modules/source-map-support/README.md +284 -0
- package/node_modules/source-map-support/browser-source-map-support.js +113 -0
- package/node_modules/source-map-support/package.json +35 -0
- package/node_modules/source-map-support/register.js +1 -0
- package/node_modules/source-map-support/source-map-support.js +567 -0
- package/node_modules/string-width/index.js +39 -0
- package/node_modules/string-width/license +9 -0
- package/node_modules/string-width/package.json +60 -0
- package/node_modules/string-width/readme.md +45 -0
- package/node_modules/string_decoder/LICENSE +48 -0
- package/node_modules/string_decoder/README.md +47 -0
- package/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/node_modules/string_decoder/package.json +38 -0
- package/node_modules/strip-ansi/index.d.ts +15 -0
- package/node_modules/strip-ansi/index.js +7 -0
- package/node_modules/strip-ansi/license +9 -0
- package/node_modules/strip-ansi/package.json +58 -0
- package/node_modules/strip-ansi/readme.md +61 -0
- package/node_modules/strip-eof/index.js +15 -0
- package/node_modules/strip-eof/license +21 -0
- package/node_modules/strip-eof/package.json +43 -0
- package/node_modules/strip-eof/readme.md +28 -0
- package/node_modules/strip-hex-prefix/.editorconfig +7 -0
- package/node_modules/strip-hex-prefix/.gitattributes +106 -0
- package/node_modules/strip-hex-prefix/.npmignore +8 -0
- package/node_modules/strip-hex-prefix/.travis.yml +5 -0
- package/node_modules/strip-hex-prefix/CHANGELOG.md +7 -0
- package/node_modules/strip-hex-prefix/LICENSE +21 -0
- package/node_modules/strip-hex-prefix/README.md +106 -0
- package/node_modules/strip-hex-prefix/package.json +46 -0
- package/node_modules/strip-hex-prefix/src/index.js +14 -0
- package/node_modules/strip-hex-prefix/src/tests/test.index.js +47 -0
- package/node_modules/util-deprecate/History.md +16 -0
- package/node_modules/util-deprecate/LICENSE +24 -0
- package/node_modules/util-deprecate/README.md +53 -0
- package/node_modules/util-deprecate/browser.js +67 -0
- package/node_modules/util-deprecate/node.js +6 -0
- package/node_modules/util-deprecate/package.json +31 -0
- package/node_modules/which/LICENSE +15 -0
- package/node_modules/which/README.md +51 -0
- package/node_modules/which/bin/which +52 -0
- package/node_modules/which/package.json +34 -0
- package/node_modules/which/which.js +135 -0
- package/node_modules/which-module/LICENSE +13 -0
- package/node_modules/which-module/README.md +55 -0
- package/node_modules/which-module/index.js +9 -0
- package/node_modules/which-module/package.json +45 -0
- package/node_modules/wrap-ansi/index.js +188 -0
- package/node_modules/wrap-ansi/license +9 -0
- package/node_modules/wrap-ansi/package.json +65 -0
- package/node_modules/wrap-ansi/readme.md +108 -0
- package/node_modules/wrappy/LICENSE +15 -0
- package/node_modules/wrappy/README.md +36 -0
- package/node_modules/wrappy/package.json +33 -0
- package/node_modules/wrappy/wrappy.js +33 -0
- package/node_modules/y18n/LICENSE +13 -0
- package/node_modules/y18n/README.md +109 -0
- package/node_modules/y18n/index.js +188 -0
- package/node_modules/y18n/package.json +43 -0
- package/node_modules/yargs/LICENSE +22 -0
- package/node_modules/yargs/README.md +122 -0
- package/node_modules/yargs/index.js +32 -0
- package/node_modules/yargs/lib/apply-extends.js +53 -0
- package/node_modules/yargs/lib/argsert.js +68 -0
- package/node_modules/yargs/lib/command.js +437 -0
- package/node_modules/yargs/lib/completion-templates.js +49 -0
- package/node_modules/yargs/lib/completion.js +115 -0
- package/node_modules/yargs/lib/decamelize.js +32 -0
- package/node_modules/yargs/lib/is-promise.js +3 -0
- package/node_modules/yargs/lib/levenshtein.js +58 -0
- package/node_modules/yargs/lib/middleware.js +65 -0
- package/node_modules/yargs/lib/obj-filter.js +11 -0
- package/node_modules/yargs/lib/usage.js +540 -0
- package/node_modules/yargs/lib/validation.js +341 -0
- package/node_modules/yargs/lib/yerror.js +11 -0
- package/node_modules/yargs/locales/be.json +39 -0
- package/node_modules/yargs/locales/de.json +39 -0
- package/node_modules/yargs/locales/en.json +42 -0
- package/node_modules/yargs/locales/es.json +39 -0
- package/node_modules/yargs/locales/fr.json +37 -0
- package/node_modules/yargs/locales/hi.json +42 -0
- package/node_modules/yargs/locales/hu.json +39 -0
- package/node_modules/yargs/locales/id.json +43 -0
- package/node_modules/yargs/locales/it.json +39 -0
- package/node_modules/yargs/locales/ja.json +42 -0
- package/node_modules/yargs/locales/ko.json +42 -0
- package/node_modules/yargs/locales/nb.json +37 -0
- package/node_modules/yargs/locales/nl.json +42 -0
- package/node_modules/yargs/locales/nn.json +39 -0
- package/node_modules/yargs/locales/pirate.json +13 -0
- package/node_modules/yargs/locales/pl.json +42 -0
- package/node_modules/yargs/locales/pt.json +38 -0
- package/node_modules/yargs/locales/pt_BR.json +42 -0
- package/node_modules/yargs/locales/ru.json +39 -0
- package/node_modules/yargs/locales/th.json +39 -0
- package/node_modules/yargs/locales/tr.json +41 -0
- package/node_modules/yargs/locales/zh_CN.json +41 -0
- package/node_modules/yargs/locales/zh_TW.json +40 -0
- package/node_modules/yargs/package.json +83 -0
- package/node_modules/yargs/yargs.js +1205 -0
- package/node_modules/yargs-parser/LICENSE.txt +14 -0
- package/node_modules/yargs-parser/README.md +396 -0
- package/node_modules/yargs-parser/index.js +916 -0
- package/node_modules/yargs-parser/lib/tokenize-arg-string.js +40 -0
- package/node_modules/yargs-parser/package.json +51 -0
- package/package.json +73 -4
@@ -0,0 +1,708 @@
|
|
1
|
+
#ifndef SECP256K1_H
|
2
|
+
#define SECP256K1_H
|
3
|
+
|
4
|
+
#ifdef __cplusplus
|
5
|
+
extern "C" {
|
6
|
+
#endif
|
7
|
+
|
8
|
+
#include <stddef.h>
|
9
|
+
|
10
|
+
/* These rules specify the order of arguments in API calls:
|
11
|
+
*
|
12
|
+
* 1. Context pointers go first, followed by output arguments, combined
|
13
|
+
* output/input arguments, and finally input-only arguments.
|
14
|
+
* 2. Array lengths always immediately the follow the argument whose length
|
15
|
+
* they describe, even if this violates rule 1.
|
16
|
+
* 3. Within the OUT/OUTIN/IN groups, pointers to data that is typically generated
|
17
|
+
* later go first. This means: signatures, public nonces, private nonces,
|
18
|
+
* messages, public keys, secret keys, tweaks.
|
19
|
+
* 4. Arguments that are not data pointers go last, from more complex to less
|
20
|
+
* complex: function pointers, algorithm names, messages, void pointers,
|
21
|
+
* counts, flags, booleans.
|
22
|
+
* 5. Opaque data pointers follow the function pointer they are to be passed to.
|
23
|
+
*/
|
24
|
+
|
25
|
+
/** Opaque data structure that holds context information (precomputed tables etc.).
|
26
|
+
*
|
27
|
+
* The purpose of context structures is to cache large precomputed data tables
|
28
|
+
* that are expensive to construct, and also to maintain the randomization data
|
29
|
+
* for blinding.
|
30
|
+
*
|
31
|
+
* Do not create a new context object for each operation, as construction is
|
32
|
+
* far slower than all other API calls (~100 times slower than an ECDSA
|
33
|
+
* verification).
|
34
|
+
*
|
35
|
+
* A constructed context can safely be used from multiple threads
|
36
|
+
* simultaneously, but API calls that take a non-const pointer to a context
|
37
|
+
* need exclusive access to it. In particular this is the case for
|
38
|
+
* secp256k1_context_destroy, secp256k1_context_preallocated_destroy,
|
39
|
+
* and secp256k1_context_randomize.
|
40
|
+
*
|
41
|
+
* Regarding randomization, either do it once at creation time (in which case
|
42
|
+
* you do not need any locking for the other calls), or use a read-write lock.
|
43
|
+
*/
|
44
|
+
typedef struct secp256k1_context_struct secp256k1_context;
|
45
|
+
|
46
|
+
/** Opaque data structure that holds rewriteable "scratch space"
|
47
|
+
*
|
48
|
+
* The purpose of this structure is to replace dynamic memory allocations,
|
49
|
+
* because we target architectures where this may not be available. It is
|
50
|
+
* essentially a resizable (within specified parameters) block of bytes,
|
51
|
+
* which is initially created either by memory allocation or TODO as a pointer
|
52
|
+
* into some fixed rewritable space.
|
53
|
+
*
|
54
|
+
* Unlike the context object, this cannot safely be shared between threads
|
55
|
+
* without additional synchronization logic.
|
56
|
+
*/
|
57
|
+
typedef struct secp256k1_scratch_space_struct secp256k1_scratch_space;
|
58
|
+
|
59
|
+
/** Opaque data structure that holds a parsed and valid public key.
|
60
|
+
*
|
61
|
+
* The exact representation of data inside is implementation defined and not
|
62
|
+
* guaranteed to be portable between different platforms or versions. It is
|
63
|
+
* however guaranteed to be 64 bytes in size, and can be safely copied/moved.
|
64
|
+
* If you need to convert to a format suitable for storage, transmission, or
|
65
|
+
* comparison, use secp256k1_ec_pubkey_serialize and secp256k1_ec_pubkey_parse.
|
66
|
+
*/
|
67
|
+
typedef struct {
|
68
|
+
unsigned char data[64];
|
69
|
+
} secp256k1_pubkey;
|
70
|
+
|
71
|
+
/** Opaque data structured that holds a parsed ECDSA signature.
|
72
|
+
*
|
73
|
+
* The exact representation of data inside is implementation defined and not
|
74
|
+
* guaranteed to be portable between different platforms or versions. It is
|
75
|
+
* however guaranteed to be 64 bytes in size, and can be safely copied/moved.
|
76
|
+
* If you need to convert to a format suitable for storage, transmission, or
|
77
|
+
* comparison, use the secp256k1_ecdsa_signature_serialize_* and
|
78
|
+
* secp256k1_ecdsa_signature_parse_* functions.
|
79
|
+
*/
|
80
|
+
typedef struct {
|
81
|
+
unsigned char data[64];
|
82
|
+
} secp256k1_ecdsa_signature;
|
83
|
+
|
84
|
+
/** A pointer to a function to deterministically generate a nonce.
|
85
|
+
*
|
86
|
+
* Returns: 1 if a nonce was successfully generated. 0 will cause signing to fail.
|
87
|
+
* Out: nonce32: pointer to a 32-byte array to be filled by the function.
|
88
|
+
* In: msg32: the 32-byte message hash being verified (will not be NULL)
|
89
|
+
* key32: pointer to a 32-byte secret key (will not be NULL)
|
90
|
+
* algo16: pointer to a 16-byte array describing the signature
|
91
|
+
* algorithm (will be NULL for ECDSA for compatibility).
|
92
|
+
* data: Arbitrary data pointer that is passed through.
|
93
|
+
* attempt: how many iterations we have tried to find a nonce.
|
94
|
+
* This will almost always be 0, but different attempt values
|
95
|
+
* are required to result in a different nonce.
|
96
|
+
*
|
97
|
+
* Except for test cases, this function should compute some cryptographic hash of
|
98
|
+
* the message, the algorithm, the key and the attempt.
|
99
|
+
*/
|
100
|
+
typedef int (*secp256k1_nonce_function)(
|
101
|
+
unsigned char *nonce32,
|
102
|
+
const unsigned char *msg32,
|
103
|
+
const unsigned char *key32,
|
104
|
+
const unsigned char *algo16,
|
105
|
+
void *data,
|
106
|
+
unsigned int attempt
|
107
|
+
);
|
108
|
+
|
109
|
+
# if !defined(SECP256K1_GNUC_PREREQ)
|
110
|
+
# if defined(__GNUC__)&&defined(__GNUC_MINOR__)
|
111
|
+
# define SECP256K1_GNUC_PREREQ(_maj,_min) \
|
112
|
+
((__GNUC__<<16)+__GNUC_MINOR__>=((_maj)<<16)+(_min))
|
113
|
+
# else
|
114
|
+
# define SECP256K1_GNUC_PREREQ(_maj,_min) 0
|
115
|
+
# endif
|
116
|
+
# endif
|
117
|
+
|
118
|
+
# if (!defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) )
|
119
|
+
# if SECP256K1_GNUC_PREREQ(2,7)
|
120
|
+
# define SECP256K1_INLINE __inline__
|
121
|
+
# elif (defined(_MSC_VER))
|
122
|
+
# define SECP256K1_INLINE __inline
|
123
|
+
# else
|
124
|
+
# define SECP256K1_INLINE
|
125
|
+
# endif
|
126
|
+
# else
|
127
|
+
# define SECP256K1_INLINE inline
|
128
|
+
# endif
|
129
|
+
|
130
|
+
#ifndef SECP256K1_API
|
131
|
+
# if defined(_WIN32)
|
132
|
+
# ifdef SECP256K1_BUILD
|
133
|
+
# define SECP256K1_API __declspec(dllexport)
|
134
|
+
# else
|
135
|
+
# define SECP256K1_API
|
136
|
+
# endif
|
137
|
+
# elif defined(__GNUC__) && defined(SECP256K1_BUILD)
|
138
|
+
# define SECP256K1_API __attribute__ ((visibility ("default")))
|
139
|
+
# else
|
140
|
+
# define SECP256K1_API
|
141
|
+
# endif
|
142
|
+
#endif
|
143
|
+
|
144
|
+
/**Warning attributes
|
145
|
+
* NONNULL is not used if SECP256K1_BUILD is set to avoid the compiler optimizing out
|
146
|
+
* some paranoid null checks. */
|
147
|
+
# if defined(__GNUC__) && SECP256K1_GNUC_PREREQ(3, 4)
|
148
|
+
# define SECP256K1_WARN_UNUSED_RESULT __attribute__ ((__warn_unused_result__))
|
149
|
+
# else
|
150
|
+
# define SECP256K1_WARN_UNUSED_RESULT
|
151
|
+
# endif
|
152
|
+
# if !defined(SECP256K1_BUILD) && defined(__GNUC__) && SECP256K1_GNUC_PREREQ(3, 4)
|
153
|
+
# define SECP256K1_ARG_NONNULL(_x) __attribute__ ((__nonnull__(_x)))
|
154
|
+
# else
|
155
|
+
# define SECP256K1_ARG_NONNULL(_x)
|
156
|
+
# endif
|
157
|
+
|
158
|
+
/** All flags' lower 8 bits indicate what they're for. Do not use directly. */
|
159
|
+
#define SECP256K1_FLAGS_TYPE_MASK ((1 << 8) - 1)
|
160
|
+
#define SECP256K1_FLAGS_TYPE_CONTEXT (1 << 0)
|
161
|
+
#define SECP256K1_FLAGS_TYPE_COMPRESSION (1 << 1)
|
162
|
+
/** The higher bits contain the actual data. Do not use directly. */
|
163
|
+
#define SECP256K1_FLAGS_BIT_CONTEXT_VERIFY (1 << 8)
|
164
|
+
#define SECP256K1_FLAGS_BIT_CONTEXT_SIGN (1 << 9)
|
165
|
+
#define SECP256K1_FLAGS_BIT_COMPRESSION (1 << 8)
|
166
|
+
|
167
|
+
/** Flags to pass to secp256k1_context_create, secp256k1_context_preallocated_size, and
|
168
|
+
* secp256k1_context_preallocated_create. */
|
169
|
+
#define SECP256K1_CONTEXT_VERIFY (SECP256K1_FLAGS_TYPE_CONTEXT | SECP256K1_FLAGS_BIT_CONTEXT_VERIFY)
|
170
|
+
#define SECP256K1_CONTEXT_SIGN (SECP256K1_FLAGS_TYPE_CONTEXT | SECP256K1_FLAGS_BIT_CONTEXT_SIGN)
|
171
|
+
#define SECP256K1_CONTEXT_NONE (SECP256K1_FLAGS_TYPE_CONTEXT)
|
172
|
+
|
173
|
+
/** Flag to pass to secp256k1_ec_pubkey_serialize. */
|
174
|
+
#define SECP256K1_EC_COMPRESSED (SECP256K1_FLAGS_TYPE_COMPRESSION | SECP256K1_FLAGS_BIT_COMPRESSION)
|
175
|
+
#define SECP256K1_EC_UNCOMPRESSED (SECP256K1_FLAGS_TYPE_COMPRESSION)
|
176
|
+
|
177
|
+
/** Prefix byte used to tag various encoded curvepoints for specific purposes */
|
178
|
+
#define SECP256K1_TAG_PUBKEY_EVEN 0x02
|
179
|
+
#define SECP256K1_TAG_PUBKEY_ODD 0x03
|
180
|
+
#define SECP256K1_TAG_PUBKEY_UNCOMPRESSED 0x04
|
181
|
+
#define SECP256K1_TAG_PUBKEY_HYBRID_EVEN 0x06
|
182
|
+
#define SECP256K1_TAG_PUBKEY_HYBRID_ODD 0x07
|
183
|
+
|
184
|
+
/** A simple secp256k1 context object with no precomputed tables. These are useful for
|
185
|
+
* type serialization/parsing functions which require a context object to maintain
|
186
|
+
* API consistency, but currently do not require expensive precomputations or dynamic
|
187
|
+
* allocations.
|
188
|
+
*/
|
189
|
+
SECP256K1_API extern const secp256k1_context *secp256k1_context_no_precomp;
|
190
|
+
|
191
|
+
/** Create a secp256k1 context object (in dynamically allocated memory).
|
192
|
+
*
|
193
|
+
* This function uses malloc to allocate memory. It is guaranteed that malloc is
|
194
|
+
* called at most once for every call of this function. If you need to avoid dynamic
|
195
|
+
* memory allocation entirely, see the functions in secp256k1_preallocated.h.
|
196
|
+
*
|
197
|
+
* Returns: a newly created context object.
|
198
|
+
* In: flags: which parts of the context to initialize.
|
199
|
+
*
|
200
|
+
* See also secp256k1_context_randomize.
|
201
|
+
*/
|
202
|
+
SECP256K1_API secp256k1_context* secp256k1_context_create(
|
203
|
+
unsigned int flags
|
204
|
+
) SECP256K1_WARN_UNUSED_RESULT;
|
205
|
+
|
206
|
+
/** Copy a secp256k1 context object (into dynamically allocated memory).
|
207
|
+
*
|
208
|
+
* This function uses malloc to allocate memory. It is guaranteed that malloc is
|
209
|
+
* called at most once for every call of this function. If you need to avoid dynamic
|
210
|
+
* memory allocation entirely, see the functions in secp256k1_preallocated.h.
|
211
|
+
*
|
212
|
+
* Returns: a newly created context object.
|
213
|
+
* Args: ctx: an existing context to copy (cannot be NULL)
|
214
|
+
*/
|
215
|
+
SECP256K1_API secp256k1_context* secp256k1_context_clone(
|
216
|
+
const secp256k1_context* ctx
|
217
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_WARN_UNUSED_RESULT;
|
218
|
+
|
219
|
+
/** Destroy a secp256k1 context object (created in dynamically allocated memory).
|
220
|
+
*
|
221
|
+
* The context pointer may not be used afterwards.
|
222
|
+
*
|
223
|
+
* The context to destroy must have been created using secp256k1_context_create
|
224
|
+
* or secp256k1_context_clone. If the context has instead been created using
|
225
|
+
* secp256k1_context_preallocated_create or secp256k1_context_preallocated_clone, the
|
226
|
+
* behaviour is undefined. In that case, secp256k1_context_preallocated_destroy must
|
227
|
+
* be used instead.
|
228
|
+
*
|
229
|
+
* Args: ctx: an existing context to destroy, constructed using
|
230
|
+
* secp256k1_context_create or secp256k1_context_clone
|
231
|
+
*/
|
232
|
+
SECP256K1_API void secp256k1_context_destroy(
|
233
|
+
secp256k1_context* ctx
|
234
|
+
);
|
235
|
+
|
236
|
+
/** Set a callback function to be called when an illegal argument is passed to
|
237
|
+
* an API call. It will only trigger for violations that are mentioned
|
238
|
+
* explicitly in the header.
|
239
|
+
*
|
240
|
+
* The philosophy is that these shouldn't be dealt with through a
|
241
|
+
* specific return value, as calling code should not have branches to deal with
|
242
|
+
* the case that this code itself is broken.
|
243
|
+
*
|
244
|
+
* On the other hand, during debug stage, one would want to be informed about
|
245
|
+
* such mistakes, and the default (crashing) may be inadvisable.
|
246
|
+
* When this callback is triggered, the API function called is guaranteed not
|
247
|
+
* to cause a crash, though its return value and output arguments are
|
248
|
+
* undefined.
|
249
|
+
*
|
250
|
+
* When this function has not been called (or called with fn==NULL), then the
|
251
|
+
* default handler will be used. The library provides a default handler which
|
252
|
+
* writes the message to stderr and calls abort. This default handler can be
|
253
|
+
* replaced at link time if the preprocessor macro
|
254
|
+
* USE_EXTERNAL_DEFAULT_CALLBACKS is defined, which is the case if the build
|
255
|
+
* has been configured with --enable-external-default-callbacks. Then the
|
256
|
+
* following two symbols must be provided to link against:
|
257
|
+
* - void secp256k1_default_illegal_callback_fn(const char* message, void* data);
|
258
|
+
* - void secp256k1_default_error_callback_fn(const char* message, void* data);
|
259
|
+
* The library can call these default handlers even before a proper callback data
|
260
|
+
* pointer could have been set using secp256k1_context_set_illegal_callback or
|
261
|
+
* secp256k1_context_set_error_callback, e.g., when the creation of a context
|
262
|
+
* fails. In this case, the corresponding default handler will be called with
|
263
|
+
* the data pointer argument set to NULL.
|
264
|
+
*
|
265
|
+
* Args: ctx: an existing context object (cannot be NULL)
|
266
|
+
* In: fun: a pointer to a function to call when an illegal argument is
|
267
|
+
* passed to the API, taking a message and an opaque pointer.
|
268
|
+
* (NULL restores the default handler.)
|
269
|
+
* data: the opaque pointer to pass to fun above.
|
270
|
+
*
|
271
|
+
* See also secp256k1_context_set_error_callback.
|
272
|
+
*/
|
273
|
+
SECP256K1_API void secp256k1_context_set_illegal_callback(
|
274
|
+
secp256k1_context* ctx,
|
275
|
+
void (*fun)(const char* message, void* data),
|
276
|
+
const void* data
|
277
|
+
) SECP256K1_ARG_NONNULL(1);
|
278
|
+
|
279
|
+
/** Set a callback function to be called when an internal consistency check
|
280
|
+
* fails. The default is crashing.
|
281
|
+
*
|
282
|
+
* This can only trigger in case of a hardware failure, miscompilation,
|
283
|
+
* memory corruption, serious bug in the library, or other error would can
|
284
|
+
* otherwise result in undefined behaviour. It will not trigger due to mere
|
285
|
+
* incorrect usage of the API (see secp256k1_context_set_illegal_callback
|
286
|
+
* for that). After this callback returns, anything may happen, including
|
287
|
+
* crashing.
|
288
|
+
*
|
289
|
+
* Args: ctx: an existing context object (cannot be NULL)
|
290
|
+
* In: fun: a pointer to a function to call when an internal error occurs,
|
291
|
+
* taking a message and an opaque pointer (NULL restores the
|
292
|
+
* default handler, see secp256k1_context_set_illegal_callback
|
293
|
+
* for details).
|
294
|
+
* data: the opaque pointer to pass to fun above.
|
295
|
+
*
|
296
|
+
* See also secp256k1_context_set_illegal_callback.
|
297
|
+
*/
|
298
|
+
SECP256K1_API void secp256k1_context_set_error_callback(
|
299
|
+
secp256k1_context* ctx,
|
300
|
+
void (*fun)(const char* message, void* data),
|
301
|
+
const void* data
|
302
|
+
) SECP256K1_ARG_NONNULL(1);
|
303
|
+
|
304
|
+
/** Create a secp256k1 scratch space object.
|
305
|
+
*
|
306
|
+
* Returns: a newly created scratch space.
|
307
|
+
* Args: ctx: an existing context object (cannot be NULL)
|
308
|
+
* In: size: amount of memory to be available as scratch space. Some extra
|
309
|
+
* (<100 bytes) will be allocated for extra accounting.
|
310
|
+
*/
|
311
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space* secp256k1_scratch_space_create(
|
312
|
+
const secp256k1_context* ctx,
|
313
|
+
size_t size
|
314
|
+
) SECP256K1_ARG_NONNULL(1);
|
315
|
+
|
316
|
+
/** Destroy a secp256k1 scratch space.
|
317
|
+
*
|
318
|
+
* The pointer may not be used afterwards.
|
319
|
+
* Args: ctx: a secp256k1 context object.
|
320
|
+
* scratch: space to destroy
|
321
|
+
*/
|
322
|
+
SECP256K1_API void secp256k1_scratch_space_destroy(
|
323
|
+
const secp256k1_context* ctx,
|
324
|
+
secp256k1_scratch_space* scratch
|
325
|
+
) SECP256K1_ARG_NONNULL(1);
|
326
|
+
|
327
|
+
/** Parse a variable-length public key into the pubkey object.
|
328
|
+
*
|
329
|
+
* Returns: 1 if the public key was fully valid.
|
330
|
+
* 0 if the public key could not be parsed or is invalid.
|
331
|
+
* Args: ctx: a secp256k1 context object.
|
332
|
+
* Out: pubkey: pointer to a pubkey object. If 1 is returned, it is set to a
|
333
|
+
* parsed version of input. If not, its value is undefined.
|
334
|
+
* In: input: pointer to a serialized public key
|
335
|
+
* inputlen: length of the array pointed to by input
|
336
|
+
*
|
337
|
+
* This function supports parsing compressed (33 bytes, header byte 0x02 or
|
338
|
+
* 0x03), uncompressed (65 bytes, header byte 0x04), or hybrid (65 bytes, header
|
339
|
+
* byte 0x06 or 0x07) format public keys.
|
340
|
+
*/
|
341
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_parse(
|
342
|
+
const secp256k1_context* ctx,
|
343
|
+
secp256k1_pubkey* pubkey,
|
344
|
+
const unsigned char *input,
|
345
|
+
size_t inputlen
|
346
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
347
|
+
|
348
|
+
/** Serialize a pubkey object into a serialized byte sequence.
|
349
|
+
*
|
350
|
+
* Returns: 1 always.
|
351
|
+
* Args: ctx: a secp256k1 context object.
|
352
|
+
* Out: output: a pointer to a 65-byte (if compressed==0) or 33-byte (if
|
353
|
+
* compressed==1) byte array to place the serialized key
|
354
|
+
* in.
|
355
|
+
* In/Out: outputlen: a pointer to an integer which is initially set to the
|
356
|
+
* size of output, and is overwritten with the written
|
357
|
+
* size.
|
358
|
+
* In: pubkey: a pointer to a secp256k1_pubkey containing an
|
359
|
+
* initialized public key.
|
360
|
+
* flags: SECP256K1_EC_COMPRESSED if serialization should be in
|
361
|
+
* compressed format, otherwise SECP256K1_EC_UNCOMPRESSED.
|
362
|
+
*/
|
363
|
+
SECP256K1_API int secp256k1_ec_pubkey_serialize(
|
364
|
+
const secp256k1_context* ctx,
|
365
|
+
unsigned char *output,
|
366
|
+
size_t *outputlen,
|
367
|
+
const secp256k1_pubkey* pubkey,
|
368
|
+
unsigned int flags
|
369
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4);
|
370
|
+
|
371
|
+
/** Parse an ECDSA signature in compact (64 bytes) format.
|
372
|
+
*
|
373
|
+
* Returns: 1 when the signature could be parsed, 0 otherwise.
|
374
|
+
* Args: ctx: a secp256k1 context object
|
375
|
+
* Out: sig: a pointer to a signature object
|
376
|
+
* In: input64: a pointer to the 64-byte array to parse
|
377
|
+
*
|
378
|
+
* The signature must consist of a 32-byte big endian R value, followed by a
|
379
|
+
* 32-byte big endian S value. If R or S fall outside of [0..order-1], the
|
380
|
+
* encoding is invalid. R and S with value 0 are allowed in the encoding.
|
381
|
+
*
|
382
|
+
* After the call, sig will always be initialized. If parsing failed or R or
|
383
|
+
* S are zero, the resulting sig value is guaranteed to fail validation for any
|
384
|
+
* message and public key.
|
385
|
+
*/
|
386
|
+
SECP256K1_API int secp256k1_ecdsa_signature_parse_compact(
|
387
|
+
const secp256k1_context* ctx,
|
388
|
+
secp256k1_ecdsa_signature* sig,
|
389
|
+
const unsigned char *input64
|
390
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
391
|
+
|
392
|
+
/** Parse a DER ECDSA signature.
|
393
|
+
*
|
394
|
+
* Returns: 1 when the signature could be parsed, 0 otherwise.
|
395
|
+
* Args: ctx: a secp256k1 context object
|
396
|
+
* Out: sig: a pointer to a signature object
|
397
|
+
* In: input: a pointer to the signature to be parsed
|
398
|
+
* inputlen: the length of the array pointed to be input
|
399
|
+
*
|
400
|
+
* This function will accept any valid DER encoded signature, even if the
|
401
|
+
* encoded numbers are out of range.
|
402
|
+
*
|
403
|
+
* After the call, sig will always be initialized. If parsing failed or the
|
404
|
+
* encoded numbers are out of range, signature validation with it is
|
405
|
+
* guaranteed to fail for every message and public key.
|
406
|
+
*/
|
407
|
+
SECP256K1_API int secp256k1_ecdsa_signature_parse_der(
|
408
|
+
const secp256k1_context* ctx,
|
409
|
+
secp256k1_ecdsa_signature* sig,
|
410
|
+
const unsigned char *input,
|
411
|
+
size_t inputlen
|
412
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
413
|
+
|
414
|
+
/** Serialize an ECDSA signature in DER format.
|
415
|
+
*
|
416
|
+
* Returns: 1 if enough space was available to serialize, 0 otherwise
|
417
|
+
* Args: ctx: a secp256k1 context object
|
418
|
+
* Out: output: a pointer to an array to store the DER serialization
|
419
|
+
* In/Out: outputlen: a pointer to a length integer. Initially, this integer
|
420
|
+
* should be set to the length of output. After the call
|
421
|
+
* it will be set to the length of the serialization (even
|
422
|
+
* if 0 was returned).
|
423
|
+
* In: sig: a pointer to an initialized signature object
|
424
|
+
*/
|
425
|
+
SECP256K1_API int secp256k1_ecdsa_signature_serialize_der(
|
426
|
+
const secp256k1_context* ctx,
|
427
|
+
unsigned char *output,
|
428
|
+
size_t *outputlen,
|
429
|
+
const secp256k1_ecdsa_signature* sig
|
430
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4);
|
431
|
+
|
432
|
+
/** Serialize an ECDSA signature in compact (64 byte) format.
|
433
|
+
*
|
434
|
+
* Returns: 1
|
435
|
+
* Args: ctx: a secp256k1 context object
|
436
|
+
* Out: output64: a pointer to a 64-byte array to store the compact serialization
|
437
|
+
* In: sig: a pointer to an initialized signature object
|
438
|
+
*
|
439
|
+
* See secp256k1_ecdsa_signature_parse_compact for details about the encoding.
|
440
|
+
*/
|
441
|
+
SECP256K1_API int secp256k1_ecdsa_signature_serialize_compact(
|
442
|
+
const secp256k1_context* ctx,
|
443
|
+
unsigned char *output64,
|
444
|
+
const secp256k1_ecdsa_signature* sig
|
445
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
446
|
+
|
447
|
+
/** Verify an ECDSA signature.
|
448
|
+
*
|
449
|
+
* Returns: 1: correct signature
|
450
|
+
* 0: incorrect or unparseable signature
|
451
|
+
* Args: ctx: a secp256k1 context object, initialized for verification.
|
452
|
+
* In: sig: the signature being verified (cannot be NULL)
|
453
|
+
* msg32: the 32-byte message hash being verified (cannot be NULL)
|
454
|
+
* pubkey: pointer to an initialized public key to verify with (cannot be NULL)
|
455
|
+
*
|
456
|
+
* To avoid accepting malleable signatures, only ECDSA signatures in lower-S
|
457
|
+
* form are accepted.
|
458
|
+
*
|
459
|
+
* If you need to accept ECDSA signatures from sources that do not obey this
|
460
|
+
* rule, apply secp256k1_ecdsa_signature_normalize to the signature prior to
|
461
|
+
* validation, but be aware that doing so results in malleable signatures.
|
462
|
+
*
|
463
|
+
* For details, see the comments for that function.
|
464
|
+
*/
|
465
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_verify(
|
466
|
+
const secp256k1_context* ctx,
|
467
|
+
const secp256k1_ecdsa_signature *sig,
|
468
|
+
const unsigned char *msg32,
|
469
|
+
const secp256k1_pubkey *pubkey
|
470
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4);
|
471
|
+
|
472
|
+
/** Convert a signature to a normalized lower-S form.
|
473
|
+
*
|
474
|
+
* Returns: 1 if sigin was not normalized, 0 if it already was.
|
475
|
+
* Args: ctx: a secp256k1 context object
|
476
|
+
* Out: sigout: a pointer to a signature to fill with the normalized form,
|
477
|
+
* or copy if the input was already normalized. (can be NULL if
|
478
|
+
* you're only interested in whether the input was already
|
479
|
+
* normalized).
|
480
|
+
* In: sigin: a pointer to a signature to check/normalize (cannot be NULL,
|
481
|
+
* can be identical to sigout)
|
482
|
+
*
|
483
|
+
* With ECDSA a third-party can forge a second distinct signature of the same
|
484
|
+
* message, given a single initial signature, but without knowing the key. This
|
485
|
+
* is done by negating the S value modulo the order of the curve, 'flipping'
|
486
|
+
* the sign of the random point R which is not included in the signature.
|
487
|
+
*
|
488
|
+
* Forgery of the same message isn't universally problematic, but in systems
|
489
|
+
* where message malleability or uniqueness of signatures is important this can
|
490
|
+
* cause issues. This forgery can be blocked by all verifiers forcing signers
|
491
|
+
* to use a normalized form.
|
492
|
+
*
|
493
|
+
* The lower-S form reduces the size of signatures slightly on average when
|
494
|
+
* variable length encodings (such as DER) are used and is cheap to verify,
|
495
|
+
* making it a good choice. Security of always using lower-S is assured because
|
496
|
+
* anyone can trivially modify a signature after the fact to enforce this
|
497
|
+
* property anyway.
|
498
|
+
*
|
499
|
+
* The lower S value is always between 0x1 and
|
500
|
+
* 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0,
|
501
|
+
* inclusive.
|
502
|
+
*
|
503
|
+
* No other forms of ECDSA malleability are known and none seem likely, but
|
504
|
+
* there is no formal proof that ECDSA, even with this additional restriction,
|
505
|
+
* is free of other malleability. Commonly used serialization schemes will also
|
506
|
+
* accept various non-unique encodings, so care should be taken when this
|
507
|
+
* property is required for an application.
|
508
|
+
*
|
509
|
+
* The secp256k1_ecdsa_sign function will by default create signatures in the
|
510
|
+
* lower-S form, and secp256k1_ecdsa_verify will not accept others. In case
|
511
|
+
* signatures come from a system that cannot enforce this property,
|
512
|
+
* secp256k1_ecdsa_signature_normalize must be called before verification.
|
513
|
+
*/
|
514
|
+
SECP256K1_API int secp256k1_ecdsa_signature_normalize(
|
515
|
+
const secp256k1_context* ctx,
|
516
|
+
secp256k1_ecdsa_signature *sigout,
|
517
|
+
const secp256k1_ecdsa_signature *sigin
|
518
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(3);
|
519
|
+
|
520
|
+
/** An implementation of RFC6979 (using HMAC-SHA256) as nonce generation function.
|
521
|
+
* If a data pointer is passed, it is assumed to be a pointer to 32 bytes of
|
522
|
+
* extra entropy.
|
523
|
+
*/
|
524
|
+
SECP256K1_API extern const secp256k1_nonce_function secp256k1_nonce_function_rfc6979;
|
525
|
+
|
526
|
+
/** A default safe nonce generation function (currently equal to secp256k1_nonce_function_rfc6979). */
|
527
|
+
SECP256K1_API extern const secp256k1_nonce_function secp256k1_nonce_function_default;
|
528
|
+
|
529
|
+
/** Create an ECDSA signature.
|
530
|
+
*
|
531
|
+
* Returns: 1: signature created
|
532
|
+
* 0: the nonce generation function failed, or the private key was invalid.
|
533
|
+
* Args: ctx: pointer to a context object, initialized for signing (cannot be NULL)
|
534
|
+
* Out: sig: pointer to an array where the signature will be placed (cannot be NULL)
|
535
|
+
* In: msg32: the 32-byte message hash being signed (cannot be NULL)
|
536
|
+
* seckey: pointer to a 32-byte secret key (cannot be NULL)
|
537
|
+
* noncefp:pointer to a nonce generation function. If NULL, secp256k1_nonce_function_default is used
|
538
|
+
* ndata: pointer to arbitrary data used by the nonce generation function (can be NULL)
|
539
|
+
*
|
540
|
+
* The created signature is always in lower-S form. See
|
541
|
+
* secp256k1_ecdsa_signature_normalize for more details.
|
542
|
+
*/
|
543
|
+
SECP256K1_API int secp256k1_ecdsa_sign(
|
544
|
+
const secp256k1_context* ctx,
|
545
|
+
secp256k1_ecdsa_signature *sig,
|
546
|
+
const unsigned char *msg32,
|
547
|
+
const unsigned char *seckey,
|
548
|
+
secp256k1_nonce_function noncefp,
|
549
|
+
const void *ndata
|
550
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3) SECP256K1_ARG_NONNULL(4);
|
551
|
+
|
552
|
+
/** Verify an ECDSA secret key.
|
553
|
+
*
|
554
|
+
* Returns: 1: secret key is valid
|
555
|
+
* 0: secret key is invalid
|
556
|
+
* Args: ctx: pointer to a context object (cannot be NULL)
|
557
|
+
* In: seckey: pointer to a 32-byte secret key (cannot be NULL)
|
558
|
+
*/
|
559
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_verify(
|
560
|
+
const secp256k1_context* ctx,
|
561
|
+
const unsigned char *seckey
|
562
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2);
|
563
|
+
|
564
|
+
/** Compute the public key for a secret key.
|
565
|
+
*
|
566
|
+
* Returns: 1: secret was valid, public key stores
|
567
|
+
* 0: secret was invalid, try again
|
568
|
+
* Args: ctx: pointer to a context object, initialized for signing (cannot be NULL)
|
569
|
+
* Out: pubkey: pointer to the created public key (cannot be NULL)
|
570
|
+
* In: seckey: pointer to a 32-byte private key (cannot be NULL)
|
571
|
+
*/
|
572
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create(
|
573
|
+
const secp256k1_context* ctx,
|
574
|
+
secp256k1_pubkey *pubkey,
|
575
|
+
const unsigned char *seckey
|
576
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
577
|
+
|
578
|
+
/** Negates a private key in place.
|
579
|
+
*
|
580
|
+
* Returns: 1 always
|
581
|
+
* Args: ctx: pointer to a context object
|
582
|
+
* In/Out: seckey: pointer to the 32-byte private key to be negated (cannot be NULL)
|
583
|
+
*/
|
584
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_negate(
|
585
|
+
const secp256k1_context* ctx,
|
586
|
+
unsigned char *seckey
|
587
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2);
|
588
|
+
|
589
|
+
/** Negates a public key in place.
|
590
|
+
*
|
591
|
+
* Returns: 1 always
|
592
|
+
* Args: ctx: pointer to a context object
|
593
|
+
* In/Out: pubkey: pointer to the public key to be negated (cannot be NULL)
|
594
|
+
*/
|
595
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_negate(
|
596
|
+
const secp256k1_context* ctx,
|
597
|
+
secp256k1_pubkey *pubkey
|
598
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2);
|
599
|
+
|
600
|
+
/** Tweak a private key by adding tweak to it.
|
601
|
+
* Returns: 0 if the tweak was out of range (chance of around 1 in 2^128 for
|
602
|
+
* uniformly random 32-byte arrays, or if the resulting private key
|
603
|
+
* would be invalid (only when the tweak is the complement of the
|
604
|
+
* private key). 1 otherwise.
|
605
|
+
* Args: ctx: pointer to a context object (cannot be NULL).
|
606
|
+
* In/Out: seckey: pointer to a 32-byte private key.
|
607
|
+
* In: tweak: pointer to a 32-byte tweak.
|
608
|
+
*/
|
609
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_add(
|
610
|
+
const secp256k1_context* ctx,
|
611
|
+
unsigned char *seckey,
|
612
|
+
const unsigned char *tweak
|
613
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
614
|
+
|
615
|
+
/** Tweak a public key by adding tweak times the generator to it.
|
616
|
+
* Returns: 0 if the tweak was out of range (chance of around 1 in 2^128 for
|
617
|
+
* uniformly random 32-byte arrays, or if the resulting public key
|
618
|
+
* would be invalid (only when the tweak is the complement of the
|
619
|
+
* corresponding private key). 1 otherwise.
|
620
|
+
* Args: ctx: pointer to a context object initialized for validation
|
621
|
+
* (cannot be NULL).
|
622
|
+
* In/Out: pubkey: pointer to a public key object.
|
623
|
+
* In: tweak: pointer to a 32-byte tweak.
|
624
|
+
*/
|
625
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_add(
|
626
|
+
const secp256k1_context* ctx,
|
627
|
+
secp256k1_pubkey *pubkey,
|
628
|
+
const unsigned char *tweak
|
629
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
630
|
+
|
631
|
+
/** Tweak a private key by multiplying it by a tweak.
|
632
|
+
* Returns: 0 if the tweak was out of range (chance of around 1 in 2^128 for
|
633
|
+
* uniformly random 32-byte arrays, or equal to zero. 1 otherwise.
|
634
|
+
* Args: ctx: pointer to a context object (cannot be NULL).
|
635
|
+
* In/Out: seckey: pointer to a 32-byte private key.
|
636
|
+
* In: tweak: pointer to a 32-byte tweak.
|
637
|
+
*/
|
638
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul(
|
639
|
+
const secp256k1_context* ctx,
|
640
|
+
unsigned char *seckey,
|
641
|
+
const unsigned char *tweak
|
642
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
643
|
+
|
644
|
+
/** Tweak a public key by multiplying it by a tweak value.
|
645
|
+
* Returns: 0 if the tweak was out of range (chance of around 1 in 2^128 for
|
646
|
+
* uniformly random 32-byte arrays, or equal to zero. 1 otherwise.
|
647
|
+
* Args: ctx: pointer to a context object initialized for validation
|
648
|
+
* (cannot be NULL).
|
649
|
+
* In/Out: pubkey: pointer to a public key object.
|
650
|
+
* In: tweak: pointer to a 32-byte tweak.
|
651
|
+
*/
|
652
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_mul(
|
653
|
+
const secp256k1_context* ctx,
|
654
|
+
secp256k1_pubkey *pubkey,
|
655
|
+
const unsigned char *tweak
|
656
|
+
) SECP256K1_ARG_NONNULL(1) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
657
|
+
|
658
|
+
/** Updates the context randomization to protect against side-channel leakage.
|
659
|
+
* Returns: 1: randomization successfully updated or nothing to randomize
|
660
|
+
* 0: error
|
661
|
+
* Args: ctx: pointer to a context object (cannot be NULL)
|
662
|
+
* In: seed32: pointer to a 32-byte random seed (NULL resets to initial state)
|
663
|
+
*
|
664
|
+
* While secp256k1 code is written to be constant-time no matter what secret
|
665
|
+
* values are, it's possible that a future compiler may output code which isn't,
|
666
|
+
* and also that the CPU may not emit the same radio frequencies or draw the same
|
667
|
+
* amount power for all values.
|
668
|
+
*
|
669
|
+
* This function provides a seed which is combined into the blinding value: that
|
670
|
+
* blinding value is added before each multiplication (and removed afterwards) so
|
671
|
+
* that it does not affect function results, but shields against attacks which
|
672
|
+
* rely on any input-dependent behaviour.
|
673
|
+
*
|
674
|
+
* This function has currently an effect only on contexts initialized for signing
|
675
|
+
* because randomization is currently used only for signing. However, this is not
|
676
|
+
* guaranteed and may change in the future. It is safe to call this function on
|
677
|
+
* contexts not initialized for signing; then it will have no effect and return 1.
|
678
|
+
*
|
679
|
+
* You should call this after secp256k1_context_create or
|
680
|
+
* secp256k1_context_clone (and secp256k1_context_preallocated_create or
|
681
|
+
* secp256k1_context_clone, resp.), and you may call this repeatedly afterwards.
|
682
|
+
*/
|
683
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_context_randomize(
|
684
|
+
secp256k1_context* ctx,
|
685
|
+
const unsigned char *seed32
|
686
|
+
) SECP256K1_ARG_NONNULL(1);
|
687
|
+
|
688
|
+
/** Add a number of public keys together.
|
689
|
+
* Returns: 1: the sum of the public keys is valid.
|
690
|
+
* 0: the sum of the public keys is not valid.
|
691
|
+
* Args: ctx: pointer to a context object
|
692
|
+
* Out: out: pointer to a public key object for placing the resulting public key
|
693
|
+
* (cannot be NULL)
|
694
|
+
* In: ins: pointer to array of pointers to public keys (cannot be NULL)
|
695
|
+
* n: the number of public keys to add together (must be at least 1)
|
696
|
+
*/
|
697
|
+
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_combine(
|
698
|
+
const secp256k1_context* ctx,
|
699
|
+
secp256k1_pubkey *out,
|
700
|
+
const secp256k1_pubkey * const * ins,
|
701
|
+
size_t n
|
702
|
+
) SECP256K1_ARG_NONNULL(2) SECP256K1_ARG_NONNULL(3);
|
703
|
+
|
704
|
+
#ifdef __cplusplus
|
705
|
+
}
|
706
|
+
#endif
|
707
|
+
|
708
|
+
#endif /* SECP256K1_H */
|