Struct bitcoin::util::contracthash::Template [−][src]
pub struct Template(_);
👎 Deprecated
A script template
Implementations
impl Template
[src]
impl Template
[src]pub fn to_script(&self, keys: &[PublicKey]) -> Result<Script, Error>
[src]
👎 Deprecated
Instantiate a template
pub fn required_keys(&self) -> usize
[src]
👎 Deprecated
Returns the number of keys this template requires to instantiate
pub fn first_push_as_number(&self) -> Option<usize>
[src]
👎 Deprecated
If the first push in the template is a number, return this number. For the common case of standard multisig templates, such a number will exist and will represent the number of signatures that are required for the script to pass.