@cmdcode/tapscript
Advanced tools
@@ -7,5 +7,5 @@ import { Buff } from '@cmdcode/buff-utils'; | ||
| export declare function encodePrevOut(vout: number): Uint8Array; | ||
| export declare function encodeSequence(sequence?: SequenceData): Uint8Array; | ||
| export declare function encodeSequence(sequence: SequenceData): Uint8Array; | ||
| export declare function encodeValue(value: ValueData): Uint8Array; | ||
| export declare function encodeLocktime(locktime: LockData): Uint8Array; | ||
| //# sourceMappingURL=encode.d.ts.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../../../src/lib/tx/encode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAc,qBAAqB,CAAA;AAIlD,OAAO,EAGL,YAAY,EAEZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACP,MAAM,uBAAuB,CAAA;AAE9B,wBAAgB,QAAQ,CACtB,MAAM,EAAG,UAAU,GAAG,MAAM,EAC5B,WAAY,CAAC,EAAE,OAAO,GACpB,IAAI,CA0BP;AAiBD,wBAAgB,aAAa,CAAE,GAAG,EAAG,MAAM,GAAI,UAAU,CAExD;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAG,MAAM,GAAI,UAAU,CAEtD;AAED,wBAAgB,aAAa,CAAE,IAAI,EAAG,MAAM,GAAI,UAAU,CAEzD;AAED,wBAAgB,cAAc,CAC5B,QAAQ,GAAG,YAAyB,GAClC,UAAU,CAEb;AAcD,wBAAgB,WAAW,CACzB,KAAK,EAAG,SAAS,GACf,UAAU,CAQb;AAmDD,wBAAgB,cAAc,CAAE,QAAQ,EAAG,QAAQ,GAAI,UAAU,CAQhE"} | ||
| {"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../../../src/lib/tx/encode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAc,qBAAqB,CAAA;AAIlD,OAAO,EAGL,YAAY,EAEZ,UAAU,EACV,QAAQ,EACR,SAAS,EACT,MAAM,EACP,MAAM,uBAAuB,CAAA;AAE9B,wBAAgB,QAAQ,CACtB,MAAM,EAAG,UAAU,GAAG,MAAM,EAC5B,WAAY,CAAC,EAAE,OAAO,GACpB,IAAI,CA0BP;AAiBD,wBAAgB,aAAa,CAAE,GAAG,EAAG,MAAM,GAAI,UAAU,CAExD;AAED,wBAAgB,UAAU,CAAE,IAAI,EAAG,MAAM,GAAI,UAAU,CAEtD;AAED,wBAAgB,aAAa,CAAE,IAAI,EAAG,MAAM,GAAI,UAAU,CAEzD;AAED,wBAAgB,cAAc,CAC5B,QAAQ,EAAG,YAAY,GACrB,UAAU,CAQb;AAcD,wBAAgB,WAAW,CACzB,KAAK,EAAG,SAAS,GACf,UAAU,CAQb;AAmDD,wBAAgB,cAAc,CAAE,QAAQ,EAAG,QAAQ,GAAI,UAAU,CAQhE"} |
+4
-4
| { | ||
| "name": "@cmdcode/tapscript", | ||
| "version": "1.2.10", | ||
| "version": "1.3.0", | ||
| "description": "A basic library for working with Tapscript, signatures and Bitcoin transactions.", | ||
@@ -50,5 +50,5 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@cmdcode/buff-utils": "^1.7.4", | ||
| "@cmdcode/crypto-utils": "^1.9.5", | ||
| "@cmdcode/keylink": "^1.4.2", | ||
| "@cmdcode/buff-utils": "^1.7.6", | ||
| "@cmdcode/crypto-utils": "^1.10.1", | ||
| "@cmdcode/keylink": "^1.4.3", | ||
| "@noble/curves": "^0.9.1", | ||
@@ -55,0 +55,0 @@ "@rollup/plugin-commonjs": "^23.0.2", |
+4
-4
@@ -208,9 +208,9 @@ # Tapscript | ||
| // You can encode / decode / convert keys and script hashes. | ||
| const address = Address.p2w.fromPubKey(pubkey, 'regtest') | ||
| const address = Address.p2wpkh.fromPubKey(pubkey, 'regtest') | ||
| // Address: bcrt1q738hdjlatdx9xmg3679kwq9cwd7fa2c84my9zk | ||
| const address = Address.p2w.encode(keyhash, 'regtest') | ||
| const address = Address.p2wpkh.encode(keyhash, 'regtest') | ||
| // Address: bcrt1q738hdjlatdx9xmg3679kwq9cwd7fa2c84my9zk | ||
| const bytes = Address.p2w.decode(address) | ||
| const bytes = Address.p2wpkh.decode(address) | ||
| // KeyHash: f44f76cbfd5b4c536d11d78b6700b8737c9eab07 | ||
| const script = Address.p2w.scriptPubKey(bytes) | ||
| const script = Address.p2wpkh.scriptPubKey(bytes) | ||
| // script: script: [ 'OP_0', 'f44f76cbfd5b4c536d11d78b6700b8737c9eab07' ] | ||
@@ -217,0 +217,0 @@ ``` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3597678
0.03%25963
0.05%