Struct holochain_zome_types::signature::VerifySignature [−][src]
Mirror struct for Sign that includes a signature to verify against a key and data.
Fields
key: AgentPubKey
The public key associated with the private key that should be used to verify the signature.
signature: Signature
The signature being verified.
data: Vec<u8>
The signed data
Implementations
impl VerifySignature
[src]
pub fn as_data_ref(&self) -> &[u8]
[src]
Alias for as_ref for data.
pub fn as_signature_ref(&self) -> &Signature
[src]
Alias for as_ref for signature.
pub fn as_key_ref(&self) -> &AgentPubKey
[src]
Alias for as_ref for agent key.
pub fn new<D>(
key: AgentPubKey,
signature: Signature,
data: D
) -> Result<Self, SerializedBytesError> where
D: Serialize + Debug,
[src]
key: AgentPubKey,
signature: Signature,
data: D
) -> Result<Self, SerializedBytesError> where
D: Serialize + Debug,
construct a new VerifySignature struct.
pub fn new_raw(key: AgentPubKey, signature: Signature, data: Vec<u8>) -> Self
[src]
construct a new Sign struct from raw bytes.
Trait Implementations
impl AsRef<HoloHash<Agent>> for VerifySignature
[src]
fn as_ref(&self) -> &AgentPubKey
[src]
impl AsRef<Signature> for VerifySignature
[src]
impl Clone for VerifySignature
[src]
fn clone(&self) -> VerifySignature
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VerifySignature
[src]
impl<'de> Deserialize<'de> for VerifySignature
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<VerifySignature> for VerifySignature
[src]
fn eq(&self, other: &VerifySignature) -> bool
[src]
fn ne(&self, other: &VerifySignature) -> bool
[src]
impl Serialize for VerifySignature
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for VerifySignature
[src]
impl TryFrom<&'_ VerifySignature> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(
t: &VerifySignature
) -> Result<SerializedBytes, SerializedBytesError>
[src]
t: &VerifySignature
) -> Result<SerializedBytes, SerializedBytesError>
impl TryFrom<SerializedBytes> for VerifySignature
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(
sb: SerializedBytes
) -> Result<VerifySignature, SerializedBytesError>
[src]
sb: SerializedBytes
) -> Result<VerifySignature, SerializedBytesError>
impl TryFrom<VerifySignature> for SerializedBytes
[src]
type Error = SerializedBytesError
The type returned in the event of a conversion error.
fn try_from(t: VerifySignature) -> Result<SerializedBytes, SerializedBytesError>
[src]
Auto Trait Implementations
impl RefUnwindSafe for VerifySignature
impl Send for VerifySignature
impl Sync for VerifySignature
impl Unpin for VerifySignature
impl UnwindSafe for VerifySignature
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,