Re-exports

pub use snarkvm_console_network_environment as environment;

Modules

Macros

Converts a string of 2 characters into a u16 for a human-readable prefix in Bech32.
Converts a string of 4 characters into a u32 for a human-readable prefix in Bech32.

Structs

The balance commitment domain as a constant field element.
The BHP hash function, which can take an input of up to 256 bits.
The BHP hash function, which can take an input of up to 512 bits.
The BHP hash function, which can take an input of up to 768 bits.
The BHP hash function, which can take an input of up to 1024 bits.
The encryption domain as a constant field element.
The group bases for the Aleo signature and encryption schemes.
The graph key domain as a constant field element.
The Marlin sponge parameters.
The Pedersen hash function, which can take an input of up to 64 bits.
The Pedersen hash function, which can take an input of up to 128 bits.
The Poseidon hash function, using a rate of 2.
The Poseidon hash function, using a rate of 4.
The Poseidon hash function, using a rate of 8.
The randomizer domain as a constant field element.
The balance commitment randomizer domain as a constant field element.
The serial number domain as a constant field element.

Traits

Unary operator for retrieving the absolute value, enforcing an overflow never occurs.
Unary operator for retrieving the absolute value, bounding the difference to MAX if an overflow occurs.
Unary operator for retrieving the absolute value, wrapping the result if an overflow occurs.
Binary operator for adding two values, enforcing an overflow never occurs.
Binary operator for adding two values, bounding the sum to MAX if an overflow occurs.
Binary operator for adding two values, wrapping the sum if an overflow occurs.
Representation of an address.
Representation of a boolean.
A trait for a commitment scheme.
A trait for a commitment scheme.
Trait for comparator operations.
Binary operator for dividing two values, enforcing an overflow never occurs.
Binary operator for dividing two values, bounding the quotient to MAX or MIN if an overflow occurs.
Binary operator for dividing two values, without checking specific conditions.
Binary operator for dividing two values, wrapping the quotient if an overflow occurs.
Unary operator for retrieving the doubled value.
Trait for equality comparisons.
Representation of a base field element.
Unary operator for converting from a base field element.
Unary operator for converting from a list of base elements.
Representation of a group element.
A trait for a hash function.
A trait for a hash function that produces multiple outputs.
A trait for a hash function that projects the value to an affine group element.
A trait for a hash function that projects the value to a scalar.
A trait for a hash function of an uncompressed variant.
Representation of an integer.
Unary operator for retrieving the inverse value.
Binary operator for modding two values.
Binary operator for multiplying two values, enforcing an overflow never occurs.
Binary operator for multiplying two values, bounding the product to MAX if an overflow occurs.
Binary operator for multiplying two values, wrapping the product if an overflow occurs.
Binary operator for performing NOT (a AND b).
Binary operator for performing (NOT a) AND (NOT b).
A trait to unwrap a Result or Halt.
A trait for a pseudorandom function.
Operations to parse a string literal into an object.
Binary operator for exponentiating two values, enforcing an overflow never occurs.
Binary operator for exponentiating two values, wrapping the result if an overflow occurs.
Binary operator for dividing two values and returning the remainder, enforcing an overflow never occurs.
Binary operator for dividing two values, bounding the remainder to MAX or MIN if an overflow occurs.
Binary operator for dividing two values, wrapping the remainder if an overflow occurs.
Representation of a scalar field element.
Binary operator for left shifting a value, checking that the rhs is less than the number of bits in self.
Binary operator for left shifting a value, safely continuing past the number of bits in self.
Binary operator for right shifting a value, checking that the rhs is less than the number of bits in self.
Binary operator for right shifting a value, safely continuing past the number of bits in self.
Unary operator for retrieving the squared value.
Unary operator for retrieving the square root of the value.
Representation of a string.
Binary operator for subtracting two values, enforcing an underflow never occurs.
Binary operator for subtracting two values, bounding the difference to MIN if an underflow occurs.
Binary operator for subtracting two values, wrapping the difference if an underflow occurs.
Trait for ternary operations.
Unary operator for converting to a base field.
Unary operator for converting to a list of base fields.

Functions

Decode the value of a variable length integer. https://en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer
Returns the variable length integer of the given value. https://en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer

Type Definitions

A helper type for the BHP Merkle tree.
The nom-compatible parser return type.
A helper type for the Poseidon Merkle tree.