Skip to content

Commit d28e9dd

Browse files
committed
add .ts
1 parent 599f16b commit d28e9dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ts_src/payments/p2tr.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ export function p2tr(a: Payment, opts?: PaymentOpts): Payment {
4040
internalPubkey: typef.maybe(typef.BufferN(32)),
4141
hash: typef.maybe(typef.BufferN(32)), // merkle root hash, the tweak
4242
pubkey: typef.maybe(typef.BufferN(32)), // tweaked with `hash` from `internalPubkey`
43-
signature: typef.maybe(typef.BufferN(64)),
43+
signature: typef.maybe(
44+
typef.anyOf[(typef.BufferN(64), typef.BufferN(65))],
45+
),
4446
witness: typef.maybe(typef.arrayOf(typef.Buffer)),
4547
scriptTree: typef.maybe(isTaptree),
4648
redeem: typef.maybe({

0 commit comments

Comments
 (0)