Skip to content

Commit f1e14ab

Browse files
committed
Expose sighashtype types
1 parent e6ee53e commit f1e14ab

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ pub use descriptor::{Descriptor, DescriptorPublicKey, DescriptorTrait};
126126
pub use interpreter::Interpreter;
127127
pub use miniscript::context::{BareCtx, Legacy, ScriptContext, Segwitv0, Tap};
128128
pub use miniscript::decode::Terminal;
129-
pub use miniscript::satisfy::{BitcoinECSig, Preimage32, Satisfier};
129+
pub use miniscript::satisfy::{
130+
BitcoinECSig, BitcoinSchnorrSig, LegacySigHashType, Preimage32, Satisfier, SchnorrSigHashType,
131+
};
130132
pub use miniscript::Miniscript;
131133

132134
///Public key trait which can be converted to Hash type

src/miniscript/satisfy.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ use Miniscript;
3434
use ScriptContext;
3535
use Terminal;
3636

37-
type LegacySigHashType = bitcoin::SigHashType;
38-
type SchnorrSigHashType = bitcoin::util::sighash::SigHashType;
37+
/// type alias for legacy sighash type
38+
pub type LegacySigHashType = bitcoin::SigHashType;
39+
/// type alias for schnorr signature hash type (includes sighash default)
40+
pub type SchnorrSigHashType = bitcoin::util::sighash::SigHashType;
3941
/// Type for a EC signature/hashtype pair
4042
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
4143
pub struct BitcoinECSig {

0 commit comments

Comments
 (0)