From dcffed31ebb135e718aa8e0d36cc629007bf6347 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Fri, 12 Nov 2021 12:13:26 +0200 Subject: [PATCH] chore: update taggedHash() prefix after rebase --- src/taproot.js | 6 +++--- ts_src/taproot.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/taproot.js b/src/taproot.js index 220274d61..0bb77079d 100644 --- a/src/taproot.js +++ b/src/taproot.js @@ -10,9 +10,9 @@ const types_1 = require('./types'); // todo: !!!Temp, to be replaced. Only works because bip32 has it as dependecy. Linting will fail. const ecc = require('tiny-secp256k1'); const LEAF_VERSION_TAPSCRIPT = 0xc0; -const TAP_LEAF_TAG = buffer_1.Buffer.from('TapLeaf', 'utf8'); -const TAP_BRANCH_TAG = buffer_1.Buffer.from('TapBranch', 'utf8'); -const TAP_TWEAK_TAG = buffer_1.Buffer.from('TapTweak', 'utf8'); +const TAP_LEAF_TAG = 'TapLeaf'; +const TAP_BRANCH_TAG = 'TapBranch'; +const TAP_TWEAK_TAG = 'TapTweak'; const EC_P_BN = new BN(types_1.EC_P); const EC_P_REDUCTION = BN.red(EC_P_BN); const EC_P_QUADRATIC_RESIDUE = EC_P_BN.addn(1).divn(4); diff --git a/ts_src/taproot.ts b/ts_src/taproot.ts index d364670a9..7f1a90bd4 100644 --- a/ts_src/taproot.ts +++ b/ts_src/taproot.ts @@ -16,9 +16,9 @@ import { const ecc = require('tiny-secp256k1'); const LEAF_VERSION_TAPSCRIPT = 0xc0; -const TAP_LEAF_TAG = NBuffer.from('TapLeaf', 'utf8'); -const TAP_BRANCH_TAG = NBuffer.from('TapBranch', 'utf8'); -const TAP_TWEAK_TAG = NBuffer.from('TapTweak', 'utf8'); +const TAP_LEAF_TAG ='TapLeaf'; +const TAP_BRANCH_TAG ='TapBranch'; +const TAP_TWEAK_TAG ='TapTweak'; const EC_P_BN = new BN(EC_P); const EC_P_REDUCTION = BN.red(EC_P_BN);