pub struct BabbageTransactionWitnessSet(/* private fields */);
Implementations§
source§impl BabbageTransactionWitnessSet
impl BabbageTransactionWitnessSet
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<BabbageTransactionWitnessSet, JsError>
pub fn from_cbor_bytes( cbor_bytes: &[u8] ) -> Result<BabbageTransactionWitnessSet, 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<BabbageTransactionWitnessSet, JsError>
pub fn from_cbor_hex( cbor_bytes: &str ) -> Result<BabbageTransactionWitnessSet, JsError>
- Create this type from the CBOR bytes encoded as a hex string.
- This is useful for interfacing with CIP30
source§impl BabbageTransactionWitnessSet
impl BabbageTransactionWitnessSet
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 new() -> Self
Trait Implementations§
source§impl AsRef<BabbageTransactionWitnessSet> for BabbageTransactionWitnessSet
impl AsRef<BabbageTransactionWitnessSet> for BabbageTransactionWitnessSet
source§fn as_ref(&self) -> &BabbageTransactionWitnessSet
fn as_ref(&self) -> &BabbageTransactionWitnessSet
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for BabbageTransactionWitnessSet
impl Clone for BabbageTransactionWitnessSet
source§fn clone(&self) -> BabbageTransactionWitnessSet
fn clone(&self) -> BabbageTransactionWitnessSet
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 BabbageTransactionWitnessSet
impl Debug for BabbageTransactionWitnessSet
source§impl From<BabbageTransactionWitnessSet> for BabbageTransactionWitnessSet
impl From<BabbageTransactionWitnessSet> for BabbageTransactionWitnessSet
source§fn from(native: BabbageTransactionWitnessSet) -> Self
fn from(native: BabbageTransactionWitnessSet) -> Self
Converts to this type from the input type.
source§impl From<BabbageTransactionWitnessSet> for JsValue
impl From<BabbageTransactionWitnessSet> for JsValue
source§fn from(value: BabbageTransactionWitnessSet) -> Self
fn from(value: BabbageTransactionWitnessSet) -> Self
Converts to this type from the input type.
source§impl Into<BabbageTransactionWitnessSet> for BabbageTransactionWitnessSet
impl Into<BabbageTransactionWitnessSet> for BabbageTransactionWitnessSet
source§fn into(self) -> BabbageTransactionWitnessSet
fn into(self) -> BabbageTransactionWitnessSet
Converts this type into the (usually inferred) input type.
source§impl RefFromWasmAbi for BabbageTransactionWitnessSet
impl RefFromWasmAbi for BabbageTransactionWitnessSet
§type Anchor = Ref<'static, BabbageTransactionWitnessSet>
type Anchor = Ref<'static, BabbageTransactionWitnessSet>
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 RefUnwindSafe for BabbageTransactionWitnessSet
impl Send for BabbageTransactionWitnessSet
impl Sync for BabbageTransactionWitnessSet
impl Unpin for BabbageTransactionWitnessSet
impl UnwindSafe for BabbageTransactionWitnessSet
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::Abi
source§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
.