pub struct TransactionWitnessSet { /* private fields */ }
Implementations§
source§impl TransactionWitnessSet
impl TransactionWitnessSet
pub fn from_bytes(
bytes: Vec<u8>
) -> Result<TransactionWitnessSet, DeserializeError>
source§impl TransactionWitnessSet
impl TransactionWitnessSet
pub fn from_hex(
hex_str: &str
) -> Result<TransactionWitnessSet, DeserializeError>
source§impl TransactionWitnessSet
impl TransactionWitnessSet
pub fn set_vkeys(&mut self, vkeys: &Vkeywitnesses)
pub fn vkeys(&self) -> Option<Vkeywitnesses>
sourcepub fn set_native_scripts(&mut self, native_scripts: &NativeScripts)
pub fn set_native_scripts(&mut self, native_scripts: &NativeScripts)
Examples found in repository?
src/tx_builder.rs (line 1863)
1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
fn get_witness_set(&self) -> TransactionWitnessSet {
let mut wit = TransactionWitnessSet::new();
if let Some(scripts) = self.get_combined_native_scripts() {
wit.set_native_scripts(&scripts);
}
if let Some(pw) = self.get_combined_plutus_scripts() {
let (scripts, datums, redeemers) = pw.collect();
wit.set_plutus_scripts(&scripts);
if let Some(datums) = &datums {
wit.set_plutus_data(datums);
}
wit.set_redeemers(&redeemers);
}
wit
}
pub fn native_scripts(&self) -> Option<NativeScripts>
pub fn set_bootstraps(&mut self, bootstraps: &BootstrapWitnesses)
pub fn bootstraps(&self) -> Option<BootstrapWitnesses>
sourcepub fn set_plutus_scripts(&mut self, plutus_scripts: &PlutusScripts)
pub fn set_plutus_scripts(&mut self, plutus_scripts: &PlutusScripts)
Examples found in repository?
src/tx_builder.rs (line 1867)
1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
fn get_witness_set(&self) -> TransactionWitnessSet {
let mut wit = TransactionWitnessSet::new();
if let Some(scripts) = self.get_combined_native_scripts() {
wit.set_native_scripts(&scripts);
}
if let Some(pw) = self.get_combined_plutus_scripts() {
let (scripts, datums, redeemers) = pw.collect();
wit.set_plutus_scripts(&scripts);
if let Some(datums) = &datums {
wit.set_plutus_data(datums);
}
wit.set_redeemers(&redeemers);
}
wit
}
pub fn plutus_scripts(&self) -> Option<PlutusScripts>
sourcepub fn set_plutus_data(&mut self, plutus_data: &PlutusList)
pub fn set_plutus_data(&mut self, plutus_data: &PlutusList)
Examples found in repository?
src/tx_builder.rs (line 1869)
1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
fn get_witness_set(&self) -> TransactionWitnessSet {
let mut wit = TransactionWitnessSet::new();
if let Some(scripts) = self.get_combined_native_scripts() {
wit.set_native_scripts(&scripts);
}
if let Some(pw) = self.get_combined_plutus_scripts() {
let (scripts, datums, redeemers) = pw.collect();
wit.set_plutus_scripts(&scripts);
if let Some(datums) = &datums {
wit.set_plutus_data(datums);
}
wit.set_redeemers(&redeemers);
}
wit
}
pub fn plutus_data(&self) -> Option<PlutusList>
sourcepub fn set_redeemers(&mut self, redeemers: &Redeemers)
pub fn set_redeemers(&mut self, redeemers: &Redeemers)
Examples found in repository?
src/tx_builder.rs (line 1871)
1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
fn get_witness_set(&self) -> TransactionWitnessSet {
let mut wit = TransactionWitnessSet::new();
if let Some(scripts) = self.get_combined_native_scripts() {
wit.set_native_scripts(&scripts);
}
if let Some(pw) = self.get_combined_plutus_scripts() {
let (scripts, datums, redeemers) = pw.collect();
wit.set_plutus_scripts(&scripts);
if let Some(datums) = &datums {
wit.set_plutus_data(datums);
}
wit.set_redeemers(&redeemers);
}
wit
}
pub fn redeemers(&self) -> Option<Redeemers>
sourcepub fn new() -> Self
pub fn new() -> Self
Examples found in repository?
src/tx_builder.rs (line 1861)
1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874
fn get_witness_set(&self) -> TransactionWitnessSet {
let mut wit = TransactionWitnessSet::new();
if let Some(scripts) = self.get_combined_native_scripts() {
wit.set_native_scripts(&scripts);
}
if let Some(pw) = self.get_combined_plutus_scripts() {
let (scripts, datums, redeemers) = pw.collect();
wit.set_plutus_scripts(&scripts);
if let Some(datums) = &datums {
wit.set_plutus_data(datums);
}
wit.set_redeemers(&redeemers);
}
wit
}
Trait Implementations§
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<'de> Deserialize<'de> for TransactionWitnessSet
impl<'de> Deserialize<'de> for TransactionWitnessSet
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Deserialize for TransactionWitnessSet
impl Deserialize for TransactionWitnessSet
fn deserialize<R: BufRead + Seek>(
raw: &mut Deserializer<R>
) -> Result<Self, DeserializeError>
source§impl JsonSchema for TransactionWitnessSet
impl JsonSchema for TransactionWitnessSet
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<TransactionWitnessSet> for TransactionWitnessSet
impl PartialEq<TransactionWitnessSet> for TransactionWitnessSet
source§fn eq(&self, other: &TransactionWitnessSet) -> bool
fn eq(&self, other: &TransactionWitnessSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.