Struct oasis_runtime_sdk::types::transaction::TransactionSigner
source · pub struct TransactionSigner { /* private fields */ }
Expand description
Transaction signer.
Implementations§
source§impl TransactionSigner
impl TransactionSigner
sourcepub fn new(tx: Transaction) -> Self
pub fn new(tx: Transaction) -> Self
Construct a new transaction signer for the given transaction.
sourcepub fn append_sign<S>(&mut self, signer: &S) -> Result<(), Error>
pub fn append_sign<S>(&mut self, signer: &S) -> Result<(), Error>
Sign the transaction and append the signature.
The signer must be specified in the auth_info
field.
sourcepub fn finalize(self) -> UnverifiedTransaction
pub fn finalize(self) -> UnverifiedTransaction
Finalize the signing process and return the (signed) unverified transaction.
Auto Trait Implementations§
impl Freeze for TransactionSigner
impl RefUnwindSafe for TransactionSigner
impl Send for TransactionSigner
impl Sync for TransactionSigner
impl Unpin for TransactionSigner
impl UnwindSafe for TransactionSigner
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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