Struct sui_sdk_types::types::MultisigCommittee
source · pub struct MultisigCommittee { /* private fields */ }
Implementations§
source§impl MultisigCommittee
impl MultisigCommittee
pub fn new(members: Vec<MultisigMember>, threshold: u16) -> Self
pub fn members(&self) -> &[MultisigMember]
pub fn threshold(&self) -> u16
pub fn scheme(&self) -> SignatureScheme
source§impl MultisigCommittee
impl MultisigCommittee
sourcepub fn to_address(&self) -> Address
Available on crate feature hash
only.
pub fn to_address(&self) -> Address
hash
only.Derive an Address from a MultisigCommittee. A MultiSig address
is defined as the 32-byte Blake2b hash of serializing the flag, the
threshold, concatenation of all n flag, public keys and
its weight. flag_MultiSig || threshold || flag_1 || pk_1 || weight_1 || ... || flag_n || pk_n || weight_n
.
When flag_i is ZkLogin, pk_i refers to [struct ZkLoginPublicIdentifier] derived from padded address seed in bytes and iss.
Trait Implementations§
source§impl Clone for MultisigCommittee
impl Clone for MultisigCommittee
source§fn clone(&self) -> MultisigCommittee
fn clone(&self) -> MultisigCommittee
Returns a copy 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 MultisigCommittee
impl Debug for MultisigCommittee
source§impl<'de> Deserialize<'de> for MultisigCommittee
impl<'de> Deserialize<'de> for MultisigCommittee
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for MultisigCommittee
impl JsonSchema for MultisigCommittee
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for MultisigCommittee
impl PartialEq for MultisigCommittee
source§impl Serialize for MultisigCommittee
impl Serialize for MultisigCommittee
impl Eq for MultisigCommittee
impl StructuralPartialEq for MultisigCommittee
Auto Trait Implementations§
impl Freeze for MultisigCommittee
impl RefUnwindSafe for MultisigCommittee
impl Send for MultisigCommittee
impl Sync for MultisigCommittee
impl Unpin for MultisigCommittee
impl UnwindSafe for MultisigCommittee
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)