pub enum Output<N: Network> {
    Constant(Field<N>, Option<Plaintext<N>>),
    Public(Field<N>, Option<Plaintext<N>>),
    Private(Field<N>, Option<Ciphertext<N>>),
    Record(Field<N>, Field<N>, Option<Record<N, Ciphertext<N>>>),
    ExternalRecord(Field<N>),
}
Expand description

The transition output.

Variants

Constant(Field<N>, Option<Plaintext<N>>)

The plaintext hash and (optional) plaintext.

Public(Field<N>, Option<Plaintext<N>>)

The plaintext hash and (optional) plaintext.

Private(Field<N>, Option<Ciphertext<N>>)

The ciphertext hash and (optional) ciphertext.

Record(Field<N>, Field<N>, Option<Record<N, Ciphertext<N>>>)

The commitment, checksum, and (optional) record ciphertext.

ExternalRecord(Field<N>)

The output commitment of the external record. Note: This is not the record commitment.

Implementations

Returns the variant of the output.

Returns the ID of the output.

Returns the commitment and record, if the output is a record.

Consumes self and returns the commitment and record, if the output is a record.

Returns the commitment, if the output is a record.

Returns the commitment, if the output is a record, and consumes self.

Returns the nonce, if the output is a record.

Returns the nonce, if the output is a record, and consumes self.

Returns the checksum, if the output is a record.

Returns the checksum, if the output is a record, and consumes self.

Returns the public verifier inputs for the proof.

Returns true if the output is well-formed. If the optional value exists, this method checks that it hashes to the output ID.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Prints the output as a JSON-string.

Deserializes the transition output from a string or bytes.

Displays the output as a JSON-string.

Reads the output from a buffer.

Returns Self from a byte array in little-endian order.

Initializes the output from a JSON-string.

The associated error which can be returned from parsing.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serializes the transition output into string or bytes.

Writes the output to a buffer.

Returns self as a byte array in little-endian order.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more