Skip to content

Commit

Permalink
chore: update taggedHash() prefix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed Jan 12, 2022
1 parent ad2aec1 commit dcffed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/taproot.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions ts_src/taproot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dcffed3

Please sign in to comment.