pub struct PreHash {
pub content: String,
pub hash_algorithm: HashAlgorithm,
}
Expand description
PreHash : The prehash object for ECDSA RAW signing requests. The prehash object contains the content to sign (the actual message in hex representation) and the hashing algorithm to use before signing.
Fields§
§content: String
The prehashed content to sign on in hex representation.
hash_algorithm: HashAlgorithm
The hashing algorithm to use in order to hash the content before the signature process
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PreHash
impl<'de> Deserialize<'de> for PreHash
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 StructuralPartialEq for PreHash
Auto Trait Implementations§
impl Freeze for PreHash
impl RefUnwindSafe for PreHash
impl Send for PreHash
impl Sync for PreHash
impl Unpin for PreHash
impl UnwindSafe for PreHash
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