pub struct Name {
pub name: String,
pub sequence: u64,
pub service: Service,
pub signatures: Vec<Bytes64>,
}
Fields§
§name: String
§sequence: u64
§service: Service
§signatures: Vec<Bytes64>
Implementations§
Source§impl Name
impl Name
Source§impl Name
impl Name
pub fn validate(&self) -> Result<(), Error>
pub fn verify( &self, params: &PublicKeyParams, level: ThresholdLevel, ) -> Result<(), Error>
pub fn sign( &mut self, params: &PublicKeyParams, level: ThresholdLevel, signers: &[SigningKey], ) -> Result<(), Error>
pub fn sign_with(&mut self, signer: &SigningKey) -> Result<(), Error>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Name
impl<'de> Deserialize<'de> for Name
Source§fn deserialize<D>(deserializer: D) -> Result<Name, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Name, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
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