Add `into_vec` method to Script
This commit is contained in:
parent
35832e3da0
commit
6ccd157775
|
@ -1,7 +1,7 @@
|
|||
|
||||
[package]
|
||||
name = "bitcoin"
|
||||
version = "0.5.9"
|
||||
version = "0.5.10"
|
||||
authors = ["Andrew Poelstra <apoelstra@wpsoftware.net>"]
|
||||
license = "CC0-1.0"
|
||||
homepage = "https://github.com/apoelstra/rust-bitcoin/"
|
||||
|
|
|
@ -1874,6 +1874,9 @@ impl Script {
|
|||
/// Whether the script is the empty script
|
||||
pub fn is_empty(&self) -> bool { self.0.is_empty() }
|
||||
|
||||
/// Convert the script into a byte vector
|
||||
pub fn into_vec(self) -> Vec<u8> { self.0.into_vec() }
|
||||
|
||||
/// Trace a script
|
||||
pub fn trace<'a>(&'a self, secp: &Secp256k1, stack: &mut Vec<MaybeOwned<'a>>,
|
||||
input_context: Option<(&Transaction, usize)>)
|
||||
|
|
Loading…
Reference in New Issue