pub struct Request<N: Network> { /* private fields */ }

Implementations

Returns the request for a given private key, program ID, function name, inputs, input types, and RNG, where: challenge := HashToScalar(r * G, pk_sig, pr_sig, caller, [tvk, tcm, function ID, input IDs]) response := r - challenge * sk_sig

Returns true if the request is valid, and false otherwise.

Verifies (challenge == challenge’) && (address == address’) && (serial_numbers == serial_numbers’) where: challenge’ := HashToScalar(r * G, pk_sig, pr_sig, caller, [tvk, tcm, function ID, input IDs])

Returns the request caller.

Returns the network ID.

Returns the program ID.

Returns the function name.

Returns the input ID for the transition.

Returns the function inputs.

Returns the signature for the transition.

Returns the tag secret key sk_tag.

Returns the transition view key tvk.

Returns the transition public key tpk.

Returns the transition secret key tsk.

Returns the transition commitment tcm.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Prints the request as a JSON-string.

Deserializes the request from a string or bytes.

Displays the request as a JSON-string.

Note: See Request::sign to create the request. This method is used to eject from a circuit.

Reads the request from a buffer.

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

Initializes the request 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 request into string or bytes.

Writes the request 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.

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.