[][src]Struct ergo_lib::chain::transaction::unsigned::UnsignedTransaction

pub struct UnsignedTransaction {
    pub inputs: Vec<UnsignedInput>,
    pub data_inputs: Vec<DataInput>,
    pub output_candidates: Vec<ErgoBoxCandidate>,
    // some fields omitted
}

Unsigned (inputs without proofs) transaction

Fields

inputs: Vec<UnsignedInput>

unsigned inputs, that will be spent by this transaction.

data_inputs: Vec<DataInput>

inputs, that are not going to be spent by transaction, but will be reachable from inputs scripts. dataInputs scripts will not be executed, thus their scripts costs are not included in transaction cost and they do not contain spending proofs.

output_candidates: Vec<ErgoBoxCandidate>

box candidates to be created by this transaction

Implementations

impl UnsignedTransaction[src]

pub fn new(
    inputs: Vec<UnsignedInput>,
    data_inputs: Vec<DataInput>,
    output_candidates: Vec<ErgoBoxCandidate>
) -> UnsignedTransaction
[src]

Creates new transaction

pub fn id(&self) -> TxId[src]

Get transaction id

pub fn bytes_to_sign(&self) -> Vec<u8>[src]

message to be signed by the crate::sigma_protocol::prover::Prover (serialized tx)

Trait Implementations

impl Clone for UnsignedTransaction[src]

impl Debug for UnsignedTransaction[src]

impl<'de> Deserialize<'de> for UnsignedTransaction[src]

impl PartialEq<UnsignedTransaction> for UnsignedTransaction[src]

impl Serialize for UnsignedTransaction[src]

impl StructuralPartialEq for UnsignedTransaction[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<F> TryExtractInto<F> for F[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,