pub struct ModuleSignature {
pub code_hash: String,
pub signature: String,
pub public_key: String,
pub timestamp: u64,
pub algorithm: String,
}Expand description
Module signature for cryptographic verification
Fields§
§code_hash: StringSHA-256 hash of the module code
signature: StringDigital signature of the code hash
public_key: StringPublic key used for verification
timestamp: u64Timestamp when signed
algorithm: StringSignature algorithm used
Trait Implementations§
Source§impl Clone for ModuleSignature
impl Clone for ModuleSignature
Source§fn clone(&self) -> ModuleSignature
fn clone(&self) -> ModuleSignature
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 ModuleSignature
impl Debug for ModuleSignature
Source§impl<'de> Deserialize<'de> for ModuleSignature
impl<'de> Deserialize<'de> for ModuleSignature
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
Auto Trait Implementations§
impl Freeze for ModuleSignature
impl RefUnwindSafe for ModuleSignature
impl Send for ModuleSignature
impl Sync for ModuleSignature
impl Unpin for ModuleSignature
impl UnwindSafe for ModuleSignature
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