File tree 2 files changed +5
-6
lines changed 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) {
32
32
hash : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 32 ) ) ,
33
33
pubkey : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 32 ) ) ,
34
34
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
+ ) ,
38
39
) ,
39
40
witness : types_1 . typeforce . maybe (
40
41
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 {
40
40
internalPubkey : typef . maybe ( typef . BufferN ( 32 ) ) ,
41
41
hash : typef . maybe ( typef . BufferN ( 32 ) ) , // merkle root hash, the tweak
42
42
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 ) ) ) ,
46
44
witness : typef . maybe ( typef . arrayOf ( typef . Buffer ) ) ,
47
45
scriptTree : typef . maybe ( isTaptree ) ,
48
46
redeem : typef . maybe ( {
You can’t perform that action at this time.
0 commit comments