pub struct Signature {
pub bytes: Vec<u8>,
pub public_key: Vec<u8>,
}Expand description
A cryptographic signature on Tenzro Network
Signatures are used to prove ownership and authorize transactions.
Both bytes and public_key are bounded at deserialization time to
MAX_SIGNATURE_BYTES and MAX_PUBLIC_KEY_BYTES respectively, to protect
against OOM via untrusted payloads (HIGH #69 in the production audit).
Fields§
§bytes: Vec<u8>The signature bytes
public_key: Vec<u8>The public key used to verify the signature
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
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 Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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