pub struct EnvelopeBuilder;Expand description
Envelope builder for creating transaction envelopes
Implementations§
Source§impl EnvelopeBuilder
impl EnvelopeBuilder
Sourcepub fn create_envelope(
transaction: Transaction,
keypair: &Keypair,
signer_url: &str,
signer_version: u64,
) -> Result<TransactionEnvelope, EnvelopeError>
pub fn create_envelope( transaction: Transaction, keypair: &Keypair, signer_url: &str, signer_version: u64, ) -> Result<TransactionEnvelope, EnvelopeError>
Create a new transaction envelope with signature
Sourcepub fn create_envelope_from_json(
principal: &str,
body: Value,
keypair: &Keypair,
signer_url: &str,
signer_version: u64,
) -> Result<TransactionEnvelope, EnvelopeError>
pub fn create_envelope_from_json( principal: &str, body: Value, keypair: &Keypair, signer_url: &str, signer_version: u64, ) -> Result<TransactionEnvelope, EnvelopeError>
Create envelope from JSON transaction body
Sourcepub fn create_envelope_with_initiator(
principal: &str,
initiator: &str,
body: Value,
keypair: &Keypair,
signer_url: &str,
signer_version: u64,
) -> Result<TransactionEnvelope, EnvelopeError>
pub fn create_envelope_with_initiator( principal: &str, initiator: &str, body: Value, keypair: &Keypair, signer_url: &str, signer_version: u64, ) -> Result<TransactionEnvelope, EnvelopeError>
Create envelope with initiator
Sourcepub fn serialize_envelope(
envelope: &TransactionEnvelope,
) -> Result<String, EnvelopeError>
pub fn serialize_envelope( envelope: &TransactionEnvelope, ) -> Result<String, EnvelopeError>
Serialize envelope to canonical JSON
Sourcepub fn verify_envelope(
envelope: &TransactionEnvelope,
) -> Result<(), EnvelopeError>
pub fn verify_envelope( envelope: &TransactionEnvelope, ) -> Result<(), EnvelopeError>
Verify envelope signature
Trait Implementations§
Source§impl Clone for EnvelopeBuilder
impl Clone for EnvelopeBuilder
Source§fn clone(&self) -> EnvelopeBuilder
fn clone(&self) -> EnvelopeBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 EnvelopeBuilder
impl Debug for EnvelopeBuilder
impl Copy for EnvelopeBuilder
Auto Trait Implementations§
impl Freeze for EnvelopeBuilder
impl RefUnwindSafe for EnvelopeBuilder
impl Send for EnvelopeBuilder
impl Sync for EnvelopeBuilder
impl Unpin for EnvelopeBuilder
impl UnsafeUnpin for EnvelopeBuilder
impl UnwindSafe for EnvelopeBuilder
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