mirror of
https://github.com/bitcoin/bips.git
synced 2026-07-06 17:46:00 +00:00
Review comments and assistance by: Armin Sabouri <armins88@gmail.com> D++ <82842780+dplusplus1024@users.noreply.github.com> Jameson Lopp <jameson.lopp@gmail.com> jbride <jbride2001@yahoo.com> Joey Yandle <xoloki@gmail.com> Jon Atack <jon@atack.com> Jonas Nick <jonasd.nick@gmail.com> Kyle Crews <kylecrews@Kyles-Mac-Studio.local> Mark "Murch" Erhardt <murch@murch.one> notmike-5 <notmike-5@users.noreply.github.com> Vojtěch Strnad <43024885+vostrnad@users.noreply.github.com> Co-authored-by: Ethan Heilman <ethan.r.heilman@gmail.com> Co-authored-by: Isabel Foxen Duke <110147802+Isabelfoxenduke@users.noreply.github.com>
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),
|
|
}
|