Crate snarkvm_console_network

Source

Re-exports§

pub use snarkvm_console_network_environment as environment;

Modules§

prelude
traits
variable_length

Macros§

const_assert
hrp2
Converts a string of 2 characters into a u16 for a human-readable prefix in Bech32.
hrp4
Converts a string of 4 characters into a u32 for a human-readable prefix in Bech32.
to_bits_le
Takes as input a sequence of objects, and converts them to a series of little-endian bits. All traits that implement ToBits can be automatically converted to bits in this manner.

Structs§

AleoID
AleoObject
BHP_256
The BHP hash function, which can take an input of up to 256 bits.
BHP_512
The BHP hash function, which can take an input of up to 512 bits.
BHP_768
The BHP hash function, which can take an input of up to 768 bits.
BHP_1024
The BHP hash function, which can take an input of up to 1024 bits.
CANARY_BHP_256
The BHP hash function, which can take an input of up to 256 bits.
CANARY_BHP_512
The BHP hash function, which can take an input of up to 512 bits.
CANARY_BHP_768
The BHP hash function, which can take an input of up to 768 bits.
CANARY_BHP_1024
The BHP hash function, which can take an input of up to 1024 bits.
CANARY_CREDITS_PROVING_KEYS
CANARY_CREDITS_VERIFYING_KEYS
CANARY_PEDERSEN_64
The Pedersen hash function, which can take an input of up to 64 bits.
CANARY_PEDERSEN_128
The Pedersen hash function, which can take an input of up to 128 bits.
CANARY_POSEIDON_2
The Poseidon hash function, using a rate of 2.
CANARY_POSEIDON_4
The Poseidon hash function, using a rate of 4.
CANARY_POSEIDON_8
The Poseidon hash function, using a rate of 8.
CREDITS_PROVING_KEYS
CREDITS_VERIFYING_KEYS
CanaryV0
Console
ENCRYPTION_DOMAIN
The encryption domain as a constant field element.
GENERATOR_G
The group bases for the Aleo signature and encryption schemes.
GRAPH_KEY_DOMAIN
The graph key domain as a constant field element.
MainnetV0
PEDERSEN_64
The Pedersen hash function, which can take an input of up to 64 bits.
PEDERSEN_128
The Pedersen hash function, which can take an input of up to 128 bits.
POSEIDON_2
The Poseidon hash function, using a rate of 2.
POSEIDON_4
The Poseidon hash function, using a rate of 4.
POSEIDON_8
The Poseidon hash function, using a rate of 8.
SERIAL_NUMBER_DOMAIN
The serial number domain as a constant field element.
Sanitizer
TESTNET_BHP_256
The BHP hash function, which can take an input of up to 256 bits.
TESTNET_BHP_512
The BHP hash function, which can take an input of up to 512 bits.
TESTNET_BHP_768
The BHP hash function, which can take an input of up to 768 bits.
TESTNET_BHP_1024
The BHP hash function, which can take an input of up to 1024 bits.
TESTNET_CREDITS_PROVING_KEYS
TESTNET_CREDITS_VERIFYING_KEYS
TESTNET_PEDERSEN_64
The Pedersen hash function, which can take an input of up to 64 bits.
TESTNET_PEDERSEN_128
The Pedersen hash function, which can take an input of up to 128 bits.
TESTNET_POSEIDON_2
The Poseidon hash function, using a rate of 2.
TESTNET_POSEIDON_4
The Poseidon hash function, using a rate of 4.
TESTNET_POSEIDON_8
The Poseidon hash function, using a rate of 8.
TestnetV0
VARUNA_FS_PARAMETERS
The Varuna sponge parameters.

Constants§

TRANSACTION_PREFIX

Traits§

AbsChecked
Unary operator for retrieving the absolute value, enforcing an overflow never occurs.
AbsSaturating
Unary operator for retrieving the absolute value, bounding the difference to MAX if an overflow occurs.
AbsWrapped
Unary operator for retrieving the absolute value, wrapping the result if an overflow occurs.
AddChecked
Binary operator for adding two values, enforcing an overflow never occurs.
AddSaturating
Binary operator for adding two values, bounding the sum to MAX if an overflow occurs.
AddWrapped
Binary operator for adding two values, wrapping the sum if an overflow occurs.
AddressTrait
Representation of an address.
Bech32ID
Bech32Object
BooleanTrait
Representation of a boolean.
CheckedPow
CheckedShl
Commit
A trait for a commitment scheme.
CommitUncompressed
A trait for a commitment scheme.
Compare
Trait for comparator operations.
DivChecked
Binary operator for dividing two values, enforcing an overflow never occurs.
DivSaturating
Binary operator for dividing two values, bounding the quotient to MAX or MIN if an overflow occurs.
DivUnchecked
Binary operator for dividing two values, without checking specific conditions.
DivWrapped
Binary operator for dividing two values, wrapping the quotient if an overflow occurs.
Double
Unary operator for retrieving the doubled value.
Environment
Equal
Trait for equality comparisons.
FieldTrait
Representation of a base field element.
FromBits
FromField
Unary operator for converting from a base field element.
FromFields
Unary operator for converting from a list of base elements.
GroupTrait
Representation of a group element.
Hash
A trait for a hash function.
HashMany
A trait for a hash function that produces multiple outputs.
HashToGroup
A trait for a hash function that projects the value to an affine group element.
HashToScalar
A trait for a hash function that projects the value to a scalar.
HashUncompressed
A trait for a hash function of an uncompressed variant.
IntegerCore
IntegerProperties
Properties common to all integer types.
IntegerTrait
Representation of an integer.
IntegerType
Trait bound for integer values. Common to both signed and unsigned integers.
Inverse
Unary operator for retrieving the inverse value.
Magnitude
Trait for integers that can be used as an unsigned magnitude. Magnitudes are either used to represent an integer exponent or the right operand in integer shift operations.
Modulo
Binary operator for modding two values.
MulChecked
Binary operator for multiplying two values, enforcing an overflow never occurs.
MulSaturating
Binary operator for multiplying two values, bounding the product to MAX if an overflow occurs.
MulWrapped
Binary operator for multiplying two values, wrapping the product if an overflow occurs.
Nand
Binary operator for performing NOT (a AND b).
Network
Nor
Binary operator for performing (NOT a) AND (NOT b).
OrHalt
A trait to unwrap a Result or Halt.
PRF
A trait for a pseudorandom function.
Parser
Operations to parse a string literal into an object.
PowChecked
Binary operator for exponentiating two values, enforcing an overflow never occurs.
PowWrapped
Binary operator for exponentiating two values, wrapping the result if an overflow occurs.
RemChecked
Binary operator for dividing two values and returning the remainder, enforcing an overflow never occurs.
RemSaturating
Binary operator for dividing two values, bounding the remainder to MAX or MIN if an overflow occurs.
RemWrapped
Binary operator for dividing two values, wrapping the remainder if an overflow occurs.
ScalarTrait
Representation of a scalar field element.
ShlChecked
Binary operator for left shifting a value, checking that the rhs is less than the number of bits in self.
ShlWrapped
Binary operator for left shifting a value, safely continuing past the number of bits in self.
ShrChecked
Binary operator for right shifting a value, checking that the rhs is less than the number of bits in self.
ShrWrapped
Binary operator for right shifting a value, safely continuing past the number of bits in self.
SizeInBits
SizeInBytes
SizeInDataBits
Square
Unary operator for retrieving the squared value.
SquareRoot
Unary operator for retrieving the square root of the value.
StringTrait
Representation of a string.
SubChecked
Binary operator for subtracting two values, enforcing an underflow never occurs.
SubSaturating
Binary operator for subtracting two values, bounding the difference to MIN if an underflow occurs.
SubWrapped
Binary operator for subtracting two values, wrapping the difference if an underflow occurs.
Ternary
Trait for ternary operations.
ToBits
ToField
Unary operator for converting to a base field.
ToFields
Unary operator for converting to a list of base fields.
TypeName
Visibility
WrappingDiv
WrappingPow
WrappingRem

Functions§

convert_result
Converts a ParserResult into a human-readable message.
read_variable_length_integer
Decode the value of a variable length integer. https://en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer
variable_length_integer
Returns the variable length integer of the given value. https://en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer

Type Aliases§

BHPMerkleTree
A helper type for the BHP Merkle tree.
FiatShamir
FiatShamirParameters
ParserResult
The nom-compatible parser return type.
PoseidonMerkleTree
A helper type for the Poseidon Merkle tree.