Trait flow_sdk::multi::Party[][src]

pub trait Party<H: FlowHasher>: Sized + Sealed {
Show 13 methods fn script(&self) -> &str;
fn arguments(&self) -> &[Box<[u8]>]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn reference_block(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn gas_limit(&self) -> u64;
fn proposer_address(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn proposal_key_id(&self) -> u64;
fn proposer_sequence_number(&self) -> u64;
fn payer(&self) -> &[u8]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn authorizers(&self) -> &[Box<[u8]>]
Notable traits for &'_ [u8]
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
;
fn payload(&self) -> H;
fn envelope(&self) -> H;
fn add_payload_signature(
        &mut self,
        signer_address: Box<[u8]>,
        signer_id: u32,
        signature: [u8; 64]
    );
fn into_transaction_with_envelope_signatures<SigAddr, Sig>(
        self,
        signatures: impl IntoIterator<Item = SignatureE<SigAddr, Sig>>
    ) -> PartyTransaction<SigAddr, Sig>;
}
Expand description

The Party trait. You can get information about the transaction you are signing and sign it by accepting some type that implements this trait.

This is Sealed, which means no foreign types may implement it, and it is not Object safe, so no one can create bad behaving trait objects which can make this trait insecure.

Required methods

Gets the script of the transaction.

Gets the arguments of the transaction.

Gets the reference block of the transaction.

Gets the gas limit of the transaction.

Gets the address of the proposer of the transaction.

Gets the key ID number of the proposal key.

Gets the sequence number of the proposal key.

Gets the address of the payer of the transaction.

Gets the addresses of the authorizers of the transaciton.

Computes the hash of the payload.

Computes the hash of the envelope.

Adds a payload signature.

Creates a PartyTransaction by feeding this party with envelope signatures.

Implementors