Struct holochain_zome_types::signature::Sign [−][src]
pub struct Sign {
pub key: AgentPubKey,
pub data: Bytes,
}
Expand description
Input structure for creating a signature.
Fields
key: AgentPubKey
The public key associated with the private key that should be used to generate the signature.
data: Bytes
The data that should be signed.
Implementations
pub fn new<S>(key: AgentPubKey, input: S) -> Result<Self, SerializedBytesError> where
S: Serialize + Debug,
pub fn new<S>(key: AgentPubKey, input: S) -> Result<Self, SerializedBytesError> where
S: Serialize + Debug,
construct a new Sign struct.
construct a new Sign struct from raw bytes.
key getter
Trait Implementations
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
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 Sign
impl UnwindSafe for Sign
Blanket Implementations
Mutably borrows from an owned value. 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