pub struct TxWitness {
pub key: BytesEnvelope,
pub signature: BytesEnvelope,
pub witness_type: WitnessType,
}Expand description
A cryptographic witness (signature) for a transaction.
Witnesses provide the proof that a transaction has been authorized by the holder of a private key. Each witness includes the public key, signature, and the type of witness.
§Fields
key- The public key bytessignature- The cryptographic signaturewitness_type- The type of witness (currently only VKey supported)
Fields§
§key: BytesEnvelopeThe public key bytes.
signature: BytesEnvelopeThe cryptographic signature.
witness_type: WitnessTypeThe type of witness.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TxWitness
impl<'de> Deserialize<'de> for TxWitness
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
Auto Trait Implementations§
impl Freeze for TxWitness
impl RefUnwindSafe for TxWitness
impl Send for TxWitness
impl Sync for TxWitness
impl Unpin for TxWitness
impl UnsafeUnpin for TxWitness
impl UnwindSafe for TxWitness
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