pub enum MultisigScript {
Legacy,
V2,
}Variants§
Legacy
Multisig Script deployed on Genesis Block https://explorer.nervos.org/script/0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8/type
V2
Latest multisig script https://explorer.nervos.org/script/0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29/data1
Implementations§
Source§impl MultisigScript
impl MultisigScript
pub const fn script_id(&self) -> ScriptId
Sourcepub fn dep_group(
&self,
network: NetworkInfo,
genesis_block: Option<BlockView>,
) -> Option<(H256, u32)>
pub fn dep_group( &self, network: NetworkInfo, genesis_block: Option<BlockView>, ) -> Option<(H256, u32)>
Get dep group from env first:
- MULTISIG_LEGACY_DEP_GROUP=0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c,1
- MULTISIG_V2_DEP_GROUP=0x6888aa39ab30c570c2c30d9d5684d3769bf77265a7973211a3c087fe8efbf738,2
If env not set, then get it from dep_group_inner If genesis_block is None, it will fetch the genesis block from the network.
Sourcepub async fn dep_group_async(
&self,
network: NetworkInfo,
genesis_block: Option<BlockView>,
) -> Option<(H256, u32)>
pub async fn dep_group_async( &self, network: NetworkInfo, genesis_block: Option<BlockView>, ) -> Option<(H256, u32)>
Get dep group from env first:
- MULTISIG_LEGACY_DEP_GROUP=0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c,1
- MULTISIG_V2_DEP_GROUP=0x6888aa39ab30c570c2c30d9d5684d3769bf77265a7973211a3c087fe8efbf738,2
If env not set, then get it from dep_group_inner If genesis_block is None, it will fetch the genesis block from the network.
Trait Implementations§
Source§impl Clone for MultisigScript
impl Clone for MultisigScript
Source§fn clone(&self) -> MultisigScript
fn clone(&self) -> MultisigScript
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultisigScript
impl Debug for MultisigScript
Source§impl PartialEq for MultisigScript
impl PartialEq for MultisigScript
Source§impl TryFrom<H256> for MultisigScript
impl TryFrom<H256> for MultisigScript
impl Copy for MultisigScript
impl Eq for MultisigScript
impl StructuralPartialEq for MultisigScript
Auto Trait Implementations§
impl Freeze for MultisigScript
impl RefUnwindSafe for MultisigScript
impl Send for MultisigScript
impl Sync for MultisigScript
impl Unpin for MultisigScript
impl UnwindSafe for MultisigScript
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more