Struct sol_did::state::VerificationMethod
source · pub struct VerificationMethod {
pub fragment: String,
pub flags: u16,
pub method_type: u8,
pub key_data: Vec<u8>,
}Expand description
The native authority key for a DidAccount
Fields§
§fragment: Stringfragment
flags: u16The permissions this key has
method_type: u8The actual verification method
key_data: Vec<u8>Dynamically sized key matching the given VerificationType
Implementations§
source§impl VerificationMethod
impl VerificationMethod
pub fn size(&self) -> usize
pub fn default(
flags: VerificationMethodFlags,
key_data: Vec<u8>
) -> VerificationMethod
pub fn default_size() -> usize
Trait Implementations§
source§impl BorshDeserialize for VerificationMethodwhere
String: BorshDeserialize,
u16: BorshDeserialize,
u8: BorshDeserialize,
Vec<u8>: BorshDeserialize,
impl BorshDeserialize for VerificationMethodwhere
String: BorshDeserialize,
u16: BorshDeserialize,
u8: BorshDeserialize,
Vec<u8>: BorshDeserialize,
source§impl BorshSerialize for VerificationMethodwhere
String: BorshSerialize,
u16: BorshSerialize,
u8: BorshSerialize,
Vec<u8>: BorshSerialize,
impl BorshSerialize for VerificationMethodwhere
String: BorshSerialize,
u16: BorshSerialize,
u8: BorshSerialize,
Vec<u8>: BorshSerialize,
source§impl Clone for VerificationMethod
impl Clone for VerificationMethod
source§fn clone(&self) -> VerificationMethod
fn clone(&self) -> VerificationMethod
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 more