File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ function p2tr(a, opts) {
37
37
internalPubkey : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 32 ) ) ,
38
38
hash : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 32 ) ) ,
39
39
pubkey : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 32 ) ) ,
40
- signature : types_1 . typeforce . maybe ( bscript . isCanonicalScriptSignature ) ,
40
+ signature : types_1 . typeforce . maybe ( types_1 . typeforce . BufferN ( 64 ) ) ,
41
41
witness : types_1 . typeforce . maybe (
42
42
types_1 . typeforce . arrayOf ( types_1 . typeforce . Buffer ) ,
43
43
) ,
Original file line number Diff line number Diff line change 47
47
"description" : " address, output and witness from pubkey and signature" ,
48
48
"arguments" : {
49
49
"pubkey" : " ab610d22c801def8a1e02368d1b92018970eb52a729919705e8a1a2f60c750f5" ,
50
- "signature" : " 300602010002010001 "
50
+ "signature" : " a251221c339a7129dd0b769698aca40d8d9da9570ab796a1820b91ab7dbf5acbea21c88ba8f1e9308a21729baf080734beaf97023882d972f75e380d480fd704 "
51
51
},
52
52
"expected" : {
53
53
"name" : " p2tr" ,
54
54
"address" : " bc1p4dss6gkgq8003g0qyd5drwfqrztsadf2w2v3juz73gdz7cx82r6sj7lcqx" ,
55
55
"output" : " OP_1 ab610d22c801def8a1e02368d1b92018970eb52a729919705e8a1a2f60c750f5" ,
56
56
"input" : null ,
57
57
"witness" : [
58
- " 300602010002010001 "
58
+ " a251221c339a7129dd0b769698aca40d8d9da9570ab796a1820b91ab7dbf5acbea21c88ba8f1e9308a21729baf080734beaf97023882d972f75e380d480fd704 "
59
59
]
60
60
}
61
61
},
908
908
"exception" : " Signature mismatch" ,
909
909
"arguments" : {
910
910
"pubkey" : " ab610d22c801def8a1e02368d1b92018970eb52a729919705e8a1a2f60c750f5" ,
911
- "signature" : " 300602010002010002 " ,
911
+ "signature" : " a251221c339a7129dd0b769698aca40d8d9da9570ab796a1820b91ab7dbf5acbea21c88ba8f1e9308a21729baf080734beaf97023882d972f75e380d480fd704 " ,
912
912
"witness" : [
913
- " 300602010002010001 "
913
+ " 607b8b5b5c8614757736e3d5811790636d2a8e2ea14418f8cff66b2e898b3b7536a49b7c4bc8b3227953194bf5d0548e13e3526fdb36beeefadda1ec834a0db2 "
914
914
]
915
915
}
916
916
},
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export function p2tr(a: Payment, opts?: PaymentOpts): Payment {
47
47
internalPubkey : typef . maybe ( typef . BufferN ( 32 ) ) ,
48
48
hash : typef . maybe ( typef . BufferN ( 32 ) ) ,
49
49
pubkey : typef . maybe ( typef . BufferN ( 32 ) ) ,
50
- signature : typef . maybe ( bscript . isCanonicalScriptSignature ) ,
50
+ signature : typef . maybe ( typef . BufferN ( 64 ) ) ,
51
51
witness : typef . maybe ( typef . arrayOf ( typef . Buffer ) ) ,
52
52
// scriptsTree: typef.maybe(typef.TaprootNode), // use merkel.isMast ?
53
53
scriptLeaf : typef . maybe ( {
You can’t perform that action at this time.
0 commit comments