pub struct SignedTransaction {
pub transaction: Transaction,
pub signatures: Vec<Signature>,
}Expand description
A transaction with its signatures.
Fields§
§transaction: TransactionThe transaction the signatures cover. Changing it invalidates them.
signatures: Vec<Signature>Canonical 65-byte compact signatures. hived accepts more than it needs, so an extra one is harmless; a missing or wrong one is not.
Implementations§
Source§impl SignedTransaction
impl SignedTransaction
Sourcepub fn signers(&self, chain: Chain) -> Result<Vec<PublicKey>>
pub fn signers(&self, chain: Chain) -> Result<Vec<PublicKey>>
The signing keys, recovered and verified.
Every signature must verify; one that does not is an error rather than a skipped entry. beem’s equivalent looped over all four recovery parameters and appended every candidate that did not raise, so its result could hold four unrelated keys for a single signature.
Source§impl SignedTransaction
impl SignedTransaction
Trait Implementations§
Source§impl Clone for SignedTransaction
impl Clone for SignedTransaction
Source§fn clone(&self) -> SignedTransaction
fn clone(&self) -> SignedTransaction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SignedTransaction
impl Debug for SignedTransaction
impl Eq for SignedTransaction
Source§impl PartialEq for SignedTransaction
impl PartialEq for SignedTransaction
impl StructuralPartialEq for SignedTransaction
Auto Trait Implementations§
impl Freeze for SignedTransaction
impl RefUnwindSafe for SignedTransaction
impl Send for SignedTransaction
impl Sync for SignedTransaction
impl Unpin for SignedTransaction
impl UnsafeUnpin for SignedTransaction
impl UnwindSafe for SignedTransaction
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.