Skip to content

Commit d2af0ad

Browse files
committed
chore: update taggedHash() prefix after rebase
1 parent 3c02879 commit d2af0ad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/taproot.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ const types_1 = require('./types');
1010
// todo: !!!Temp, to be replaced. Only works because bip32 has it as dependecy. Linting will fail.
1111
const ecc = require('tiny-secp256k1');
1212
const LEAF_VERSION_TAPSCRIPT = 0xc0;
13-
const TAP_LEAF_TAG = buffer_1.Buffer.from('TapLeaf', 'utf8');
14-
const TAP_BRANCH_TAG = buffer_1.Buffer.from('TapBranch', 'utf8');
15-
const TAP_TWEAK_TAG = buffer_1.Buffer.from('TapTweak', 'utf8');
13+
const TAP_LEAF_TAG = 'TapLeaf';
14+
const TAP_BRANCH_TAG = 'TapBranch';
15+
const TAP_TWEAK_TAG = 'TapTweak';
1616
const EC_P_BN = new BN(types_1.EC_P);
1717
const EC_P_REDUCTION = BN.red(EC_P_BN);
1818
const EC_P_QUADRATIC_RESIDUE = EC_P_BN.addn(1).divn(4);

ts_src/taproot.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import {
1616
const ecc = require('tiny-secp256k1');
1717

1818
const LEAF_VERSION_TAPSCRIPT = 0xc0;
19-
const TAP_LEAF_TAG = NBuffer.from('TapLeaf', 'utf8');
20-
const TAP_BRANCH_TAG = NBuffer.from('TapBranch', 'utf8');
21-
const TAP_TWEAK_TAG = NBuffer.from('TapTweak', 'utf8');
19+
const TAP_LEAF_TAG ='TapLeaf';
20+
const TAP_BRANCH_TAG ='TapBranch';
21+
const TAP_TWEAK_TAG ='TapTweak';
2222

2323
const EC_P_BN = new BN(EC_P);
2424
const EC_P_REDUCTION = BN.red(EC_P_BN);

0 commit comments

Comments
 (0)