Skip to content

Commit adc8a33

Browse files
committed
Handle custom signature hash type - sig length
1 parent a59eecd commit adc8a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/payments/p2tr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function p2tr(a, opts) {
3131
internalPubkey: types_1.typeforce.maybe(types_1.typeforce.BufferN(32)),
3232
hash: types_1.typeforce.maybe(types_1.typeforce.BufferN(32)),
3333
pubkey: types_1.typeforce.maybe(types_1.typeforce.BufferN(32)),
34-
signature: types_1.typeforce.maybe(types_1.typeforce.BufferN(64)),
34+
signature: types_1.typeforce.maybe(types_1.typeforce.anyOf[types_1.typeforce.BufferN(64), types_1.typeforce.BufferN(65)]),
3535
witness: types_1.typeforce.maybe(
3636
types_1.typeforce.arrayOf(types_1.typeforce.Buffer),
3737
),

0 commit comments

Comments
 (0)