@opcat-labs/opcat 1.0.3 → 2.0.0-beta-ecd3cca7-20251118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cjs2esm.json +17 -17
- package/.mocharc.yaml +3 -3
- package/README.md +6 -6
- package/cjs/address.cjs +483 -483
- package/cjs/block/block.cjs +332 -332
- package/cjs/block/blockheader.cjs +296 -296
- package/cjs/block/index.cjs +2 -2
- package/cjs/block/merkleblock.cjs +331 -331
- package/cjs/bn.cjs +3411 -3411
- package/cjs/crypto/bn.cjs +278 -278
- package/cjs/crypto/ecdsa.cjs +475 -475
- package/cjs/crypto/hash.cjs +181 -181
- package/cjs/crypto/index.cjs +16 -16
- package/cjs/crypto/point.cjs +228 -228
- package/cjs/crypto/random.cjs +18 -18
- package/cjs/crypto/signature.cjs +475 -475
- package/cjs/encoding/base58.cjs +167 -167
- package/cjs/encoding/base58check.cjs +192 -192
- package/cjs/encoding/bufferreader.cjs +333 -333
- package/cjs/encoding/bufferwriter.cjs +244 -244
- package/cjs/encoding/decode-asm.cjs +24 -24
- package/cjs/encoding/decode-hex.cjs +32 -32
- package/cjs/encoding/decode-script-chunks.cjs +43 -43
- package/cjs/encoding/encode-hex.cjs +284 -284
- package/cjs/encoding/index.cjs +14 -14
- package/cjs/encoding/is-hex.cjs +7 -7
- package/cjs/encoding/varint.cjs +116 -116
- package/cjs/errors/index.cjs +54 -54
- package/cjs/errors/spec.cjs +314 -314
- package/cjs/hash-cache.cjs +98 -98
- package/cjs/hdprivatekey.cjs +770 -770
- package/cjs/hdpublickey.cjs +552 -552
- package/cjs/index.cjs +94 -94
- package/cjs/interpreter/index.cjs +1 -1
- package/cjs/interpreter/interpreter.cjs +1987 -1987
- package/cjs/interpreter/stack.cjs +116 -116
- package/cjs/message/message.cjs +228 -228
- package/cjs/mnemonic/index.cjs +3 -3
- package/cjs/mnemonic/mnemonic.cjs +334 -334
- package/cjs/mnemonic/pbkdf2.cjs +75 -75
- package/cjs/mnemonic/words/chinese.cjs +2054 -2054
- package/cjs/mnemonic/words/english.cjs +2054 -2054
- package/cjs/mnemonic/words/french.cjs +2054 -2054
- package/cjs/mnemonic/words/index.cjs +66 -66
- package/cjs/mnemonic/words/italian.cjs +2054 -2054
- package/cjs/mnemonic/words/japanese.cjs +2054 -2054
- package/cjs/mnemonic/words/spanish.cjs +2054 -2054
- package/cjs/network.cjs +12 -12
- package/cjs/networks.cjs +321 -321
- package/cjs/opcode.cjs +319 -319
- package/cjs/privatekey.cjs +422 -422
- package/cjs/publickey.cjs +384 -384
- package/cjs/script/index.cjs +1 -1
- package/cjs/script/script.cjs +1329 -1329
- package/cjs/script/write-i32-le.cjs +17 -17
- package/cjs/script/write-push-data.cjs +35 -35
- package/cjs/script/write-u16-le.cjs +12 -12
- package/cjs/script/write-u32-le.cjs +16 -16
- package/cjs/script/write-u64-le.cjs +24 -24
- package/cjs/script/write-u8-le.cjs +8 -8
- package/cjs/script/write-varint.cjs +46 -46
- package/cjs/transaction/index.cjs +5 -5
- package/cjs/transaction/input/index.cjs +33 -33
- package/cjs/transaction/input/input.cjs +396 -396
- package/cjs/transaction/input/multisig.cjs +336 -336
- package/cjs/transaction/input/publickey.cjs +110 -110
- package/cjs/transaction/input/publickeyhash.cjs +126 -126
- package/cjs/transaction/output.cjs +316 -316
- package/cjs/transaction/sighash.cjs +186 -186
- package/cjs/transaction/signature.cjs +121 -121
- package/cjs/transaction/transaction.cjs +2000 -2000
- package/cjs/transaction/unspentoutput.cjs +113 -113
- package/cjs/util/_.cjs +47 -47
- package/cjs/util/derivation.cjs +52 -52
- package/cjs/util/index.cjs +11 -11
- package/cjs/util/js.cjs +95 -95
- package/cjs/util/preconditions.cjs +33 -33
- package/esm/address.js +483 -483
- package/esm/block/block.js +332 -332
- package/esm/block/blockheader.js +296 -296
- package/esm/block/index.js +2 -2
- package/esm/block/merkleblock.js +331 -331
- package/esm/bn.js +3411 -3411
- package/esm/crypto/bn.js +278 -278
- package/esm/crypto/ecdsa.js +475 -475
- package/esm/crypto/hash.js +181 -181
- package/esm/crypto/index.js +16 -16
- package/esm/crypto/point.js +228 -228
- package/esm/crypto/random.js +18 -18
- package/esm/crypto/signature.js +475 -475
- package/esm/encoding/base58.js +167 -167
- package/esm/encoding/base58check.js +192 -192
- package/esm/encoding/bufferreader.js +333 -333
- package/esm/encoding/bufferwriter.js +243 -243
- package/esm/encoding/decode-asm.js +24 -24
- package/esm/encoding/decode-hex.js +32 -32
- package/esm/encoding/decode-script-chunks.js +43 -43
- package/esm/encoding/encode-hex.js +284 -284
- package/esm/encoding/index.js +14 -14
- package/esm/encoding/is-hex.js +7 -7
- package/esm/encoding/varint.js +116 -116
- package/esm/errors/index.js +54 -54
- package/esm/errors/spec.js +314 -314
- package/esm/hash-cache.js +98 -98
- package/esm/hdprivatekey.js +768 -768
- package/esm/hdpublickey.js +549 -549
- package/esm/index.js +66 -66
- package/esm/interpreter/index.js +1 -1
- package/esm/interpreter/interpreter.js +1986 -1986
- package/esm/interpreter/stack.js +116 -116
- package/esm/message/message.js +228 -228
- package/esm/mnemonic/index.js +3 -3
- package/esm/mnemonic/mnemonic.js +332 -332
- package/esm/mnemonic/pbkdf2.js +75 -75
- package/esm/mnemonic/words/chinese.js +2054 -2054
- package/esm/mnemonic/words/english.js +2054 -2054
- package/esm/mnemonic/words/french.js +2054 -2054
- package/esm/mnemonic/words/index.js +66 -66
- package/esm/mnemonic/words/italian.js +2054 -2054
- package/esm/mnemonic/words/japanese.js +2054 -2054
- package/esm/mnemonic/words/spanish.js +2054 -2054
- package/esm/network.js +12 -12
- package/esm/networks.js +320 -320
- package/esm/opcode.js +319 -319
- package/esm/privatekey.js +422 -422
- package/esm/publickey.js +384 -384
- package/esm/script/index.js +1 -1
- package/esm/script/script.js +1306 -1329
- package/esm/script/write-i32-le.js +17 -17
- package/esm/script/write-push-data.js +35 -35
- package/esm/script/write-u16-le.js +12 -12
- package/esm/script/write-u32-le.js +16 -16
- package/esm/script/write-u64-le.js +24 -24
- package/esm/script/write-u8-le.js +8 -8
- package/esm/script/write-varint.js +46 -46
- package/esm/transaction/index.js +5 -5
- package/esm/transaction/input/index.js +32 -32
- package/esm/transaction/input/input.js +396 -396
- package/esm/transaction/input/multisig.js +335 -335
- package/esm/transaction/input/publickey.js +108 -108
- package/esm/transaction/input/publickeyhash.js +124 -124
- package/esm/transaction/output.js +316 -316
- package/esm/transaction/sighash.js +186 -186
- package/esm/transaction/signature.js +120 -120
- package/esm/transaction/transaction.js +1998 -1998
- package/esm/transaction/unspentoutput.js +112 -112
- package/esm/util/_.js +47 -47
- package/esm/util/derivation.js +52 -52
- package/esm/util/index.js +12 -12
- package/esm/util/js.js +95 -95
- package/esm/util/preconditions.js +33 -33
- package/fixup.cjs +17 -17
- package/package.json +2 -2
- package/test/address.cjs +480 -480
- package/test/block/block.cjs +249 -249
- package/test/block/blockheader.cjs +275 -275
- package/test/block/merklebloack.cjs +211 -211
- package/test/crypto/bn.cjs +177 -177
- package/test/crypto/ecdsa.cjs +391 -391
- package/test/crypto/hash.browser.cjs +136 -136
- package/test/crypto/hash.cjs +136 -136
- package/test/crypto/point.cjs +224 -224
- package/test/crypto/random.cjs +32 -32
- package/test/crypto/signature.cjs +409 -409
- package/test/data/bip69.json +215 -215
- package/test/data/bitcoind/base58_keys_invalid.json +52 -52
- package/test/data/bitcoind/base58_keys_valid.json +335 -335
- package/test/data/bitcoind/blocks.json +22 -22
- package/test/data/bitcoind/script_tests.json +3822 -3822
- package/test/data/bitcoind/sig_canonical.json +7 -7
- package/test/data/bitcoind/sig_noncanonical.json +36 -36
- package/test/data/bitcoind/tx_invalid.json +445 -445
- package/test/data/bitcoind/tx_valid.json +44 -44
- package/test/data/blk86756-testnet.cjs +14 -14
- package/test/data/blk86756-testnet.json +683 -683
- package/test/data/ecdsa.json +230 -230
- package/test/data/merkleblocks.cjs +488 -488
- package/test/data/messages.json +22 -22
- package/test/data/sighash.json +12 -12
- package/test/data/tx_creation.json +95 -95
- package/test/encoding/base58.cjs +131 -131
- package/test/encoding/base58check.cjs +136 -136
- package/test/encoding/bufferreader.cjs +337 -337
- package/test/encoding/bufferwriter.cjs +172 -172
- package/test/encoding/varint.cjs +104 -104
- package/test/hashCache.cjs +68 -68
- package/test/hdkeys.cjs +447 -447
- package/test/hdprivatekey.cjs +333 -333
- package/test/hdpublickey.cjs +299 -299
- package/test/index.cjs +16 -16
- package/test/message/message.cjs +204 -204
- package/test/mnemonic/data/fixtures.json +300 -300
- package/test/mnemonic/mnemonic.cjs +259 -259
- package/test/mnemonic/mocha.opts +1 -1
- package/test/mnemonic/pbkdf2.test.cjs +59 -59
- package/test/networks.cjs +140 -140
- package/test/opcode.cjs +161 -161
- package/test/privatekey.cjs +439 -439
- package/test/publickey.cjs +554 -554
- package/test/script/interpreter.cjs +734 -734
- package/test/script/script.cjs +1443 -1443
- package/test/transaction/deserialize.cjs +34 -34
- package/test/transaction/input/input.cjs +90 -90
- package/test/transaction/input/multisig.cjs +91 -91
- package/test/transaction/input/publickey.cjs +68 -68
- package/test/transaction/input/publickeyhash.cjs +51 -51
- package/test/transaction/output.cjs +185 -185
- package/test/transaction/sighash.cjs +65 -65
- package/test/transaction/signature.cjs +114 -114
- package/test/transaction/transaction.cjs +1109 -1109
- package/test/transaction/unspentoutput.cjs +110 -110
- package/test/util/js.cjs +76 -76
- package/test/util/preconditions.cjs +79 -79
- package/tsconfig.json +12 -12
- package/types/address.d.cts +252 -252
- package/types/block/block.d.cts +140 -139
- package/types/block/blockheader.d.cts +125 -125
- package/types/block/index.d.cts +2 -2
- package/types/block/merkleblock.d.cts +95 -95
- package/types/bn.d.cts +202 -202
- package/types/crypto/bn.d.cts +2 -2
- package/types/crypto/ecdsa.d.cts +187 -187
- package/types/crypto/hash.d.cts +118 -118
- package/types/crypto/index.d.cts +7 -7
- package/types/crypto/point.d.cts +134 -134
- package/types/crypto/random.d.cts +13 -13
- package/types/crypto/signature.d.cts +160 -160
- package/types/encoding/base58.d.cts +106 -106
- package/types/encoding/base58check.d.cts +107 -107
- package/types/encoding/bufferreader.d.cts +164 -164
- package/types/encoding/bufferwriter.d.cts +126 -126
- package/types/encoding/decode-asm.d.cts +2 -2
- package/types/encoding/decode-hex.d.cts +2 -2
- package/types/encoding/decode-script-chunks.d.cts +14 -14
- package/types/encoding/encode-hex.d.cts +2 -2
- package/types/encoding/index.d.cts +6 -6
- package/types/encoding/is-hex.d.cts +2 -2
- package/types/encoding/varint.d.cts +66 -66
- package/types/errors/index.d.cts +4 -4
- package/types/errors/spec.d.cts +22 -22
- package/types/hash-cache.d.cts +65 -65
- package/types/hdprivatekey.d.cts +281 -281
- package/types/hdpublickey.d.cts +240 -240
- package/types/index.d.cts +26 -26
- package/types/interpreter/index.d.cts +2 -2
- package/types/interpreter/interpreter.d.cts +228 -228
- package/types/interpreter/stack.d.cts +35 -35
- package/types/message/message.d.cts +110 -110
- package/types/mnemonic/index.d.cts +2 -2
- package/types/mnemonic/mnemonic.d.cts +171 -171
- package/types/mnemonic/pbkdf2.d.cts +14 -14
- package/types/mnemonic/words/chinese.d.cts +2 -2
- package/types/mnemonic/words/english.d.cts +2 -2
- package/types/mnemonic/words/french.d.cts +2 -2
- package/types/mnemonic/words/index.d.cts +22 -22
- package/types/mnemonic/words/italian.d.cts +2 -2
- package/types/mnemonic/words/japanese.d.cts +2 -2
- package/types/mnemonic/words/spanish.d.cts +2 -2
- package/types/network.d.cts +11 -11
- package/types/networks.d.cts +76 -76
- package/types/opcode.d.cts +93 -93
- package/types/privatekey.d.cts +169 -169
- package/types/publickey.d.cts +202 -202
- package/types/script/index.d.cts +2 -2
- package/types/script/script.d.cts +449 -449
- package/types/script/write-i32-le.d.cts +2 -2
- package/types/script/write-push-data.d.cts +2 -2
- package/types/script/write-u16-le.d.cts +2 -2
- package/types/script/write-u32-le.d.cts +2 -2
- package/types/script/write-u64-le.d.cts +2 -2
- package/types/script/write-u8-le.d.cts +2 -2
- package/types/script/write-varint.d.cts +2 -2
- package/types/transaction/index.d.cts +2 -2
- package/types/transaction/input/index.d.cts +2 -2
- package/types/transaction/input/input.d.cts +178 -178
- package/types/transaction/input/multisig.d.cts +127 -127
- package/types/transaction/input/publickey.d.cts +44 -44
- package/types/transaction/input/publickeyhash.d.cts +45 -45
- package/types/transaction/output.d.cts +118 -118
- package/types/transaction/sighash.d.cts +61 -61
- package/types/transaction/signature.d.cts +43 -43
- package/types/transaction/transaction.d.cts +716 -716
- package/types/transaction/unspentoutput.d.cts +83 -83
- package/types/util/_.d.cts +26 -26
- package/types/util/derivation.d.cts +21 -21
- package/types/util/index.d.cts +5 -5
- package/types/util/js.d.cts +50 -50
- package/types/util/preconditions.d.cts +3 -3
package/.cjs2esm.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"input": ["cjs"],
|
|
3
|
-
"ignore": [],
|
|
4
|
-
"output": "esm",
|
|
5
|
-
"forceDirectory": null,
|
|
6
|
-
"modules": [],
|
|
7
|
-
"extension": {
|
|
8
|
-
"use": "js",
|
|
9
|
-
"ignore": []
|
|
10
|
-
},
|
|
11
|
-
"addModuleEntry": false,
|
|
12
|
-
"addPackageJson": false,
|
|
13
|
-
"filesWithShebang": [],
|
|
14
|
-
"codemod": {
|
|
15
|
-
"path": "",
|
|
16
|
-
"files": ["cjs", "exports"]
|
|
17
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"input": ["cjs"],
|
|
3
|
+
"ignore": [],
|
|
4
|
+
"output": "esm",
|
|
5
|
+
"forceDirectory": null,
|
|
6
|
+
"modules": [],
|
|
7
|
+
"extension": {
|
|
8
|
+
"use": "js",
|
|
9
|
+
"ignore": []
|
|
10
|
+
},
|
|
11
|
+
"addModuleEntry": false,
|
|
12
|
+
"addPackageJson": false,
|
|
13
|
+
"filesWithShebang": [],
|
|
14
|
+
"codemod": {
|
|
15
|
+
"path": "",
|
|
16
|
+
"files": ["cjs", "exports"]
|
|
17
|
+
}
|
|
18
18
|
}
|
package/.mocharc.yaml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
recursive: true
|
|
2
|
-
timeout: 5000
|
|
3
|
-
spec: ['./test/**/*.cjs']
|
|
1
|
+
recursive: true
|
|
2
|
+
timeout: 5000
|
|
3
|
+
spec: ['./test/**/*.cjs']
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
opcat
|
|
2
|
-
=====
|
|
3
|
-
|
|
4
|
-
Javascript Opcat library.
|
|
5
|
-
|
|
6
|
-
Documentation is available on the [Opcat Docs](http://docs.opcatlabs.io/overview).
|
|
1
|
+
opcat
|
|
2
|
+
=====
|
|
3
|
+
|
|
4
|
+
Javascript Opcat library.
|
|
5
|
+
|
|
6
|
+
Documentation is available on the [Opcat Docs](http://docs.opcatlabs.io/overview).
|