Struct btc_transaction_utils::multisig::RedeemScriptContent [−][src]
Redeem script content.
Fields
public_keys: Vec<PublicKey>
The public keys of the participants of this redeem script.
quorum: usize
The number of signatures required to spend the input which corresponds to the given redeem script.
Methods
impl RedeemScriptContent
[src]
impl RedeemScriptContent
pub fn parse(
context: &Secp256k1<None>,
script: &Script
) -> Result<RedeemScriptContent, RedeemScriptError>
[src]
pub fn parse(
context: &Secp256k1<None>,
script: &Script
) -> Result<RedeemScriptContent, RedeemScriptError>
Tries to fetch redeem script content from the given raw script and returns error
if the script doesn't satisfy BIP-16
standard.
Trait Implementations
impl Debug for RedeemScriptContent
[src]
impl Debug for RedeemScriptContent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for RedeemScriptContent
[src]
impl PartialEq for RedeemScriptContent
fn eq(&self, other: &RedeemScriptContent) -> bool
[src]
fn eq(&self, other: &RedeemScriptContent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RedeemScriptContent) -> bool
[src]
fn ne(&self, other: &RedeemScriptContent) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for RedeemScriptContent
impl Send for RedeemScriptContent
impl Sync for RedeemScriptContent
impl Sync for RedeemScriptContent