We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599f16b commit d28e9ddCopy full SHA for d28e9dd
ts_src/payments/p2tr.ts
@@ -40,7 +40,9 @@ export function p2tr(a: Payment, opts?: PaymentOpts): Payment {
40
internalPubkey: typef.maybe(typef.BufferN(32)),
41
hash: typef.maybe(typef.BufferN(32)), // merkle root hash, the tweak
42
pubkey: typef.maybe(typef.BufferN(32)), // tweaked with `hash` from `internalPubkey`
43
- signature: typef.maybe(typef.BufferN(64)),
+ signature: typef.maybe(
44
+ typef.anyOf[(typef.BufferN(64), typef.BufferN(65))],
45
+ ),
46
witness: typef.maybe(typef.arrayOf(typef.Buffer)),
47
scriptTree: typef.maybe(isTaptree),
48
redeem: typef.maybe({
0 commit comments