pub struct FixedTransaction { /* private fields */ }Implementations§
Source§impl FixedTransaction
impl FixedTransaction
pub fn from_bytes(bytes: Vec<u8>) -> Result<FixedTransaction, DeserializeError>
Source§impl FixedTransaction
impl FixedTransaction
pub fn from_hex(hex_str: &str) -> Result<FixedTransaction, DeserializeError>
Source§impl FixedTransaction
impl FixedTransaction
pub fn new( raw_body: &[u8], raw_witness_set: &[u8], is_valid: bool, ) -> Result<FixedTransaction, JsError>
pub fn new_with_auxiliary( raw_body: &[u8], raw_witness_set: &[u8], raw_auxiliary_data: &[u8], is_valid: bool, ) -> Result<FixedTransaction, JsError>
pub fn new_from_body_bytes(raw_body: &[u8]) -> Result<FixedTransaction, JsError>
pub fn body(&self) -> TransactionBody
pub fn raw_body(&self) -> Vec<u8> ⓘ
pub fn set_body(&mut self, raw_body: &[u8]) -> Result<(), JsError>
Sourcepub fn set_witness_set(&mut self, raw_witness_set: &[u8]) -> Result<(), JsError>
👎Deprecated since 12.1.0: Use .sign_and_add_vkey_signature or .sign_and_add_icarus_bootstrap_signature or .sign_and_add_daedalus_bootstrap_signature instead.
pub fn set_witness_set(&mut self, raw_witness_set: &[u8]) -> Result<(), JsError>
.sign_and_add_vkey_signature or .sign_and_add_icarus_bootstrap_signature or .sign_and_add_daedalus_bootstrap_signature instead.We do not recommend using this function, since it might lead to script integrity hash.
The only purpose of this struct is to sign the transaction from third-party sources.
Use .sign_and_add_vkey_signature or .sign_and_add_icarus_bootstrap_signature or .sign_and_add_daedalus_bootstrap_signature instead.
pub fn witness_set(&self) -> TransactionWitnessSet
pub fn raw_witness_set(&self) -> Vec<u8> ⓘ
pub fn set_is_valid(&mut self, valid: bool)
pub fn is_valid(&self) -> bool
pub fn set_auxiliary_data( &mut self, raw_auxiliary_data: &[u8], ) -> Result<(), JsError>
pub fn auxiliary_data(&self) -> Option<AuxiliaryData>
pub fn raw_auxiliary_data(&self) -> Option<Vec<u8>>
pub fn transaction_hash(&self) -> TransactionHash
pub fn add_vkey_witness(&mut self, vkey_witness: &Vkeywitness)
pub fn add_bootstrap_witness(&mut self, bootstrap_witness: &BootstrapWitness)
pub fn sign_and_add_vkey_signature( &mut self, private_key: &PrivateKey, ) -> Result<(), JsError>
pub fn sign_and_add_icarus_bootstrap_signature( &mut self, addr: &ByronAddress, private_key: &Bip32PrivateKey, ) -> Result<(), JsError>
pub fn sign_and_add_daedalus_bootstrap_signature( &mut self, addr: &ByronAddress, private_key: &LegacyDaedalusPrivateKey, ) -> Result<(), JsError>
Trait Implementations§
Source§impl Clone for FixedTransaction
impl Clone for FixedTransaction
Source§fn clone(&self) -> FixedTransaction
fn clone(&self) -> FixedTransaction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FixedTransaction
impl Debug for FixedTransaction
Source§impl PartialEq for FixedTransaction
impl PartialEq for FixedTransaction
Source§impl Serialize for FixedTransaction
impl Serialize for FixedTransaction
fn serialize<'se, W: Write>( &self, serializer: &'se mut Serializer<W>, ) -> Result<&'se mut Serializer<W>>
impl Eq for FixedTransaction
impl StructuralPartialEq for FixedTransaction
Auto Trait Implementations§
impl Freeze for FixedTransaction
impl RefUnwindSafe for FixedTransaction
impl Send for FixedTransaction
impl Sync for FixedTransaction
impl Unpin for FixedTransaction
impl UnwindSafe for FixedTransaction
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
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more