pub struct VersionedApp {
pub version: u32,
pub wasm_hash: B32,
}Expand description
Identifies a specific version of an app’s Wasm binary, signed by the app’s owning key.
For a versioned app, the app’s vk is the SHA256 of a public key. The corresponding
AppSignature proves that the holder of that key has authorized this particular Wasm
binary as the given version of the app.
Fields§
§version: u32Version number, as exposed by the __app_version export of the Wasm binary.
wasm_hash: B32SHA256 hash of the Wasm binary that implements this version of the app.
Trait Implementations§
Source§impl Clone for VersionedApp
impl Clone for VersionedApp
Source§fn clone(&self) -> VersionedApp
fn clone(&self) -> VersionedApp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VersionedApp
impl Debug for VersionedApp
Source§impl<'de> Deserialize<'de> for VersionedApp
impl<'de> Deserialize<'de> for VersionedApp
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
impl Eq for VersionedApp
Source§impl PartialEq for VersionedApp
impl PartialEq for VersionedApp
Source§fn eq(&self, other: &VersionedApp) -> bool
fn eq(&self, other: &VersionedApp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VersionedApp
impl Serialize for VersionedApp
impl StructuralPartialEq for VersionedApp
Auto Trait Implementations§
impl Freeze for VersionedApp
impl RefUnwindSafe for VersionedApp
impl Send for VersionedApp
impl Sync for VersionedApp
impl Unpin for VersionedApp
impl UnsafeUnpin for VersionedApp
impl UnwindSafe for VersionedApp
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