File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,10 @@ function p2tr(a, opts) {
3232 hash : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 32 ) ) ,
3333 pubkey : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 32 ) ) ,
3434 signature : types_1 . typeforce . maybe (
35- types_1 . typeforce . anyOf [
36- ( types_1 . typeforce . BufferN ( 64 ) , types_1 . typeforce . BufferN ( 65 ) )
37- ] ,
35+ types_1 . typeforce . anyOf (
36+ types_1 . typeforce . BufferN ( 64 ) ,
37+ types_1 . typeforce . BufferN ( 65 ) ,
38+ ) ,
3839 ) ,
3940 witness : types_1 . typeforce . maybe (
4041 types_1 . typeforce . arrayOf ( types_1 . typeforce . Buffer ) ,
Original file line number Diff line number Diff line change @@ -40,9 +40,7 @@ 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 (
44- typef . anyOf [ ( typef . BufferN ( 64 ) , typef . BufferN ( 65 ) ) ] ,
45- ) ,
43+ signature : typef . maybe ( typef . anyOf ( typef . BufferN ( 64 ) , typef . BufferN ( 65 ) ) ) ,
4644 witness : typef . maybe ( typef . arrayOf ( typef . Buffer ) ) ,
4745 scriptTree : typef . maybe ( isTaptree ) ,
4846 redeem : typef . maybe ( {
You can’t perform that action at this time.
0 commit comments