Skip to content

Commit

Permalink
Add Taproot sighash test vector with leaf hash
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewLM committed Oct 9, 2023
1 parent eeeb26c commit aa183ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion coinlib/test/tx/sighash/taproot_signature_hasher_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,12 @@ final taprootSigVectors = [
hashType: SigHashType.all(anyOneCanPay: true),
sigHashHex: "cccb739eca6c13a8a89e6e5cd317ffe55669bbda23f2fd37b0f18755e008edd2",
),
// TODO: Leaf hash signature hash
TaprootSignatureVector(
inputN: 0,
hashType: SigHashType.single(),
sigHashHex: "20834f382e040a8b6d03600667c2c593b4ffa955f15476ba3b70b72c2538320c",
leafHashHex: "2bfe58ab6d9fd575bdc3a624e4825dd2b375d64ac033fbc46ea79dbab4f69a3e",
),
];

void main() {
Expand Down

0 comments on commit aa183ca

Please sign in to comment.