Struct cml_chain_wasm::transaction::TransactionWitnessSet
source · pub struct TransactionWitnessSet(/* private fields */);Implementations§
source§impl TransactionWitnessSet
impl TransactionWitnessSet
pub fn add_all_witnesses(&mut self, other: &TransactionWitnessSet)
pub fn languages(&self) -> LanguageList
source§impl TransactionWitnessSet
impl TransactionWitnessSet
sourcepub fn to_cbor_bytes(&self) -> Vec<u8>
pub fn to_cbor_bytes(&self) -> Vec<u8>
- Serialize this type to CBOR bytes
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
sourcepub fn from_cbor_bytes(
cbor_bytes: &[u8]
) -> Result<TransactionWitnessSet, JsError>
pub fn from_cbor_bytes( cbor_bytes: &[u8] ) -> Result<TransactionWitnessSet, JsError>
- Create this type from CBOR bytes
sourcepub fn to_cbor_hex(&self) -> String
pub fn to_cbor_hex(&self) -> String
- Serialize this type to CBOR bytes encoded as a hex string (useful for working with CIP30).
- This type type supports encoding preservation so this will preserve round-trip CBOR formats.
- If created from scratch the CBOR will be canonical.
sourcepub fn from_cbor_hex(cbor_bytes: &str) -> Result<TransactionWitnessSet, JsError>
pub fn from_cbor_hex(cbor_bytes: &str) -> Result<TransactionWitnessSet, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
source§impl TransactionWitnessSet
impl TransactionWitnessSet
pub fn set_vkeywitnesses(&mut self, vkeywitnesses: &VkeywitnessList)
pub fn vkeywitnesses(&self) -> Option<VkeywitnessList>
pub fn set_native_scripts(&mut self, native_scripts: &NativeScriptList)
pub fn native_scripts(&self) -> Option<NativeScriptList>
pub fn set_bootstrap_witnesses( &mut self, bootstrap_witnesses: &BootstrapWitnessList )
pub fn bootstrap_witnesses(&self) -> Option<BootstrapWitnessList>
pub fn set_plutus_v1_scripts(&mut self, plutus_v1_scripts: &PlutusV1ScriptList)
pub fn plutus_v1_scripts(&self) -> Option<PlutusV1ScriptList>
pub fn set_plutus_datums(&mut self, plutus_datums: &PlutusDataList)
pub fn plutus_datums(&self) -> Option<PlutusDataList>
pub fn set_redeemers(&mut self, redeemers: &RedeemerList)
pub fn redeemers(&self) -> Option<RedeemerList>
pub fn set_plutus_v2_scripts(&mut self, plutus_v2_scripts: &PlutusV2ScriptList)
pub fn plutus_v2_scripts(&self) -> Option<PlutusV2ScriptList>
pub fn set_plutus_v3_scripts(&mut self, plutus_v3_scripts: &PlutusV3ScriptList)
pub fn plutus_v3_scripts(&self) -> Option<PlutusV3ScriptList>
pub fn new() -> Self
Trait Implementations§
source§impl AsRef<TransactionWitnessSet> for TransactionWitnessSet
impl AsRef<TransactionWitnessSet> for TransactionWitnessSet
source§fn as_ref(&self) -> &TransactionWitnessSet
fn as_ref(&self) -> &TransactionWitnessSet
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for TransactionWitnessSet
impl Clone for TransactionWitnessSet
source§fn clone(&self) -> TransactionWitnessSet
fn clone(&self) -> TransactionWitnessSet
Returns a copy 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 TransactionWitnessSet
impl Debug for TransactionWitnessSet
source§impl From<TransactionWitnessSet> for JsValue
impl From<TransactionWitnessSet> for JsValue
source§fn from(value: TransactionWitnessSet) -> Self
fn from(value: TransactionWitnessSet) -> Self
Converts to this type from the input type.
source§impl From<TransactionWitnessSet> for TransactionWitnessSet
impl From<TransactionWitnessSet> for TransactionWitnessSet
source§fn from(native: TransactionWitnessSet) -> Self
fn from(native: TransactionWitnessSet) -> Self
Converts to this type from the input type.
source§impl FromWasmAbi for TransactionWitnessSet
impl FromWasmAbi for TransactionWitnessSet
source§impl Into<TransactionWitnessSet> for TransactionWitnessSet
impl Into<TransactionWitnessSet> for TransactionWitnessSet
source§fn into(self) -> TransactionWitnessSet
fn into(self) -> TransactionWitnessSet
Converts this type into the (usually inferred) input type.
source§impl IntoWasmAbi for TransactionWitnessSet
impl IntoWasmAbi for TransactionWitnessSet
source§impl RefFromWasmAbi for TransactionWitnessSet
impl RefFromWasmAbi for TransactionWitnessSet
§type Anchor = Ref<'static, TransactionWitnessSet>
type Anchor = Ref<'static, TransactionWitnessSet>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Auto Trait Implementations§
impl Freeze for TransactionWitnessSet
impl RefUnwindSafe for TransactionWitnessSet
impl Send for TransactionWitnessSet
impl Sync for TransactionWitnessSet
impl Unpin for TransactionWitnessSet
impl UnwindSafe for TransactionWitnessSet
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> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abisource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.