Skip to content

Commit 5714598

Browse files
gijswijsguggero
authored andcommitted
proof: Add stxo exclusion proof verification
`verifyExclusionProofs` now checks if the stxo exclusion proofs are present in the `ExclusionProofs[idx].CommitmentProof` and if so will verify those in preference of the old style proofs.
1 parent e502363 commit 5714598

File tree

3 files changed

+1422
-47
lines changed

3 files changed

+1422
-47
lines changed

proof/taproot.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ var (
2525
ErrInvalidCommitmentProof = errors.New(
2626
"invalid Taproot Asset commitment proof",
2727
)
28+
29+
// ErrStxoInputProofMissing is returned when a required STXO input proof
30+
// is missing.
31+
ErrStxoInputProofMissing = errors.New(
32+
"missing STXO input proof for Taproot Asset commitment",
33+
)
2834
)
2935

3036
// CommitmentProof represents a full commitment proof for an asset. It can

0 commit comments

Comments
 (0)