We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfa267e commit 36b4ad9Copy full SHA for 36b4ad9
src/lib.rs
@@ -71,6 +71,12 @@ pub use crate::value::Value;
71
pub use simplicity_sys as ffi;
72
use std::fmt;
73
74
+/// Return the version of Simplicity leaves inside a tap tree.
75
+#[cfg(feature = "elements")]
76
+pub fn leaf_version() -> elements::taproot::LeafVersion {
77
+ elements::taproot::LeafVersion::from_u8(0xbe).expect("constant leaf version")
78
+}
79
+
80
/// Error type for simplicity
81
#[non_exhaustive]
82
#[derive(Debug)]
0 commit comments