mirror of
https://github.com/bitcoin/bips.git
synced 2026-07-06 17:46:00 +00:00
16 lines
400 B
Rust
16 lines
400 B
Rust
|
|
use thiserror::Error;
|
||
|
|
|
||
|
|
#[derive(Error, Debug)]
|
||
|
|
pub enum P2MRError {
|
||
|
|
|
||
|
|
#[error("P2TR requires witness version of 1")]
|
||
|
|
P2trRequiresWitnessVersion1,
|
||
|
|
|
||
|
|
|
||
|
|
#[error("P2MR requires a script tree with at least one leaf")]
|
||
|
|
MissingScriptTreeLeaf,
|
||
|
|
|
||
|
|
// We can add more specific error variants here as needed
|
||
|
|
#[error("Invalid script tree structure: {0}")]
|
||
|
|
InvalidScriptTree(String),
|
||
|
|
}
|