EnvelopeExt

Trait EnvelopeExt 

Source
pub trait EnvelopeExt: Borrow<Envelope> {
    // Provided methods
    fn prefix_eip191_hash(&self) -> FixedBytes<32> { ... }
    fn unprefixed_hash(&self) -> FixedBytes<32> { ... }
    fn sign<'life0, 'life1, 'async_trait>(
        &'life0 self,
        signer: &'life1 PrivateKeySigner,
        kind: SignatureKind,
    ) -> Pin<Box<dyn Future<Output = Result<EnvelopeSignature>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn signature_data(
        &self,
        signatures: Vec<EnvelopeSignature>,
        block_height: u64,
    ) -> Result<SignatureData, EnvelopeError> { ... }
}

Provided Methods§

Source

fn prefix_eip191_hash(&self) -> FixedBytes<32>

Source

fn unprefixed_hash(&self) -> FixedBytes<32>

Source

fn sign<'life0, 'life1, 'async_trait>( &'life0 self, signer: &'life1 PrivateKeySigner, kind: SignatureKind, ) -> Pin<Box<dyn Future<Output = Result<EnvelopeSignature>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn signature_data( &self, signatures: Vec<EnvelopeSignature>, block_height: u64, ) -> Result<SignatureData, EnvelopeError>

Implementors§