Struct holochain_zome_types::signature::VerifySignature [−][src]
pub struct VerifySignature {
pub key: AgentPubKey,
pub signature: Signature,
pub data: Vec<u8>,
}
Expand description
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
Alias for as_ref for data.
Alias for as_ref for signature.
Alias for as_ref for agent key.
pub fn new<D>(
key: AgentPubKey,
signature: Signature,
data: D
) -> Result<Self, SerializedBytesError> where
D: Serialize + Debug,
pub fn new<D>(
key: AgentPubKey,
signature: Signature,
data: D
) -> Result<Self, SerializedBytesError> where
D: Serialize + Debug,
construct a new VerifySignature struct.
Trait Implementations
Performs the conversion.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Performs the conversion.
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more