pub struct Testnet3;

Trait Implementations§

§

impl Clone for Testnet3

§

fn clone(&self) -> Testnet3

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Testnet3

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Testnet3

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Testnet3, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Environment for Testnet3

§

const EDWARDS_A: <Testnet3 as Environment>::Field = Console::EDWARDS_A

The coefficient A of the twisted Edwards curve.

§

const EDWARDS_D: <Testnet3 as Environment>::Field = Console::EDWARDS_D

The coefficient D of the twisted Edwards curve.

§

const MONTGOMERY_A: <Testnet3 as Environment>::Field = Console::MONTGOMERY_A

The coefficient A of the Montgomery curve.

§

const MONTGOMERY_B: <Testnet3 as Environment>::Field = Console::MONTGOMERY_B

The coefficient B of the Montgomery curve.

§

type Affine = <Console as Environment>::Affine

§

type BigInteger = <Console as Environment>::BigInteger

§

type Field = <Console as Environment>::Field

§

type PairingCurve = <Console as Environment>::PairingCurve

§

type Projective = <Console as Environment>::Projective

§

type Scalar = <Console as Environment>::Scalar

§

const MAX_STRING_BYTES: u32 = 255u32

The maximum number of bytes allowed in a string.
§

fn halt<S, T>(message: S) -> Twhere S: Into<String>,

Halts the program from further synthesis, evaluation, and execution in the current environment.
§

impl Hash for Testnet3

§

fn hash<__H>(&self, state: &mut __H)where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Network for Testnet3

§

type BlockHash = AleoID<Field<Testnet3>, snarkvm_console_network::::testnet3::{impl#2}::BlockHash::{constant#0}>

The block hash type.

§

type StateRoot = AleoID<Field<Testnet3>, snarkvm_console_network::::testnet3::{impl#2}::StateRoot::{constant#0}>

The state root type.

§

type TransactionID = AleoID<Field<Testnet3>, snarkvm_console_network::::testnet3::{impl#2}::TransactionID::{constant#0}>

The transaction ID type.

§

type TransitionID = AleoID<Field<Testnet3>, snarkvm_console_network::::testnet3::{impl#2}::TransitionID::{constant#0}>

The transition ID type.

§

const EDITION: u16 = 0u16

The network edition.

§

const ID: u16 = 3u16

The network ID.

§

const INCLUSION_FUNCTION_NAME: &'static str = snarkvm_parameters::testnet3::TESTNET3_INCLUSION_FUNCTION_NAME

The function name for the inclusion circuit.

§

const NAME: &'static str = "Aleo Testnet 3"

The network name.

§

fn genesis_bytes() -> &'static [u8]

Returns the genesis block bytes.

§

fn get_credits_proving_key( function_name: String ) -> Result<&'static Arc<CircuitProvingKey<<Testnet3 as Environment>::PairingCurve, MarlinHidingMode>>, Error>

Returns the proving key for the given function name in credits.aleo.

§

fn get_credits_verifying_key( function_name: String ) -> Result<&'static Arc<CircuitVerifyingKey<<Testnet3 as Environment>::PairingCurve>>, Error>

Returns the verifying key for the given function name in credits.aleo.

§

fn inclusion_proving_key( ) -> &'static Arc<CircuitProvingKey<<Testnet3 as Environment>::PairingCurve, MarlinHidingMode>>

Returns the proving key for the inclusion circuit.

§

fn inclusion_verifying_key( ) -> &'static Arc<CircuitVerifyingKey<<Testnet3 as Environment>::PairingCurve>>

Returns the verifying key for the inclusion circuit.

§

fn g_powers() -> &'static Vec<Group<Testnet3>, Global>

Returns the powers of G.

§

fn g_scalar_multiply(scalar: &Scalar<Testnet3>) -> Group<Testnet3>

Returns the scalar multiplication on the generator G.

§

fn marlin_universal_prover( ) -> &'static UniversalProver<<Testnet3 as Environment>::PairingCurve>

Returns the Marlin universal prover.

§

fn marlin_universal_verifier( ) -> &'static UniversalVerifier<<Testnet3 as Environment>::PairingCurve>

Returns the Marlin universal verifier.

§

fn marlin_fs_parameters( ) -> &'static <PoseidonSponge<<<Testnet3 as Environment>::PairingCurve as PairingEngine>::Fq, 2, 1> as AlgebraicSponge<<<Testnet3 as Environment>::PairingCurve as PairingEngine>::Fq, 2>>::Parameters

Returns the sponge parameters used for the sponge in the Marlin SNARK.

§

fn encryption_domain() -> Field<Testnet3>

Returns the encryption domain as a constant field element.

§

fn graph_key_domain() -> Field<Testnet3>

Returns the graph key domain as a constant field element.

§

fn serial_number_domain() -> Field<Testnet3>

Returns the serial number domain as a constant field element.

§

fn commit_bhp256( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Field<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 256-bits and randomizer.

§

fn commit_bhp512( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Field<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 512-bits and randomizer.

§

fn commit_bhp768( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Field<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 768-bits and randomizer.

§

fn commit_bhp1024( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Field<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 1024-bits and randomizer.

§

fn commit_ped64( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Field<Testnet3>, Error>

Returns a Pedersen commitment for the given (up to) 64-bit input and randomizer.

§

fn commit_ped128( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Field<Testnet3>, Error>

Returns a Pedersen commitment for the given (up to) 128-bit input and randomizer.

§

fn commit_to_group_bhp256( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Group<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 256-bits and randomizer.

§

fn commit_to_group_bhp512( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Group<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 512-bits and randomizer.

§

fn commit_to_group_bhp768( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Group<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 768-bits and randomizer.

§

fn commit_to_group_bhp1024( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Group<Testnet3>, Error>

Returns a BHP commitment with an input hasher of 1024-bits and randomizer.

§

fn commit_to_group_ped64( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Group<Testnet3>, Error>

Returns a Pedersen commitment for the given (up to) 64-bit input and randomizer.

§

fn commit_to_group_ped128( input: &[bool], randomizer: &Scalar<Testnet3> ) -> Result<Group<Testnet3>, Error>

Returns a Pedersen commitment for the given (up to) 128-bit input and randomizer.

§

fn hash_bhp256(input: &[bool]) -> Result<Field<Testnet3>, Error>

Returns the BHP hash with an input hasher of 256-bits.

§

fn hash_bhp512(input: &[bool]) -> Result<Field<Testnet3>, Error>

Returns the BHP hash with an input hasher of 512-bits.

§

fn hash_bhp768(input: &[bool]) -> Result<Field<Testnet3>, Error>

Returns the BHP hash with an input hasher of 768-bits.

§

fn hash_bhp1024(input: &[bool]) -> Result<Field<Testnet3>, Error>

Returns the BHP hash with an input hasher of 1024-bits.

§

fn hash_ped64(input: &[bool]) -> Result<Field<Testnet3>, Error>

Returns the Pedersen hash for a given (up to) 64-bit input.

§

fn hash_ped128(input: &[bool]) -> Result<Field<Testnet3>, Error>

Returns the Pedersen hash for a given (up to) 128-bit input.

§

fn hash_psd2(input: &[Field<Testnet3>]) -> Result<Field<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 2.

§

fn hash_psd4(input: &[Field<Testnet3>]) -> Result<Field<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 4.

§

fn hash_psd8(input: &[Field<Testnet3>]) -> Result<Field<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 8.

§

fn hash_many_psd2( input: &[Field<Testnet3>], num_outputs: u16 ) -> Vec<Field<Testnet3>, Global>

Returns the extended Poseidon hash with an input rate of 2.

§

fn hash_many_psd4( input: &[Field<Testnet3>], num_outputs: u16 ) -> Vec<Field<Testnet3>, Global>

Returns the extended Poseidon hash with an input rate of 4.

§

fn hash_many_psd8( input: &[Field<Testnet3>], num_outputs: u16 ) -> Vec<Field<Testnet3>, Global>

Returns the extended Poseidon hash with an input rate of 8.

§

fn hash_to_group_bhp256(input: &[bool]) -> Result<Group<Testnet3>, Error>

Returns the BHP hash with an input hasher of 256-bits.

§

fn hash_to_group_bhp512(input: &[bool]) -> Result<Group<Testnet3>, Error>

Returns the BHP hash with an input hasher of 512-bits.

§

fn hash_to_group_bhp768(input: &[bool]) -> Result<Group<Testnet3>, Error>

Returns the BHP hash with an input hasher of 768-bits.

§

fn hash_to_group_bhp1024(input: &[bool]) -> Result<Group<Testnet3>, Error>

Returns the BHP hash with an input hasher of 1024-bits.

§

fn hash_to_group_ped64(input: &[bool]) -> Result<Group<Testnet3>, Error>

Returns the Pedersen hash for a given (up to) 64-bit input.

§

fn hash_to_group_ped128(input: &[bool]) -> Result<Group<Testnet3>, Error>

Returns the Pedersen hash for a given (up to) 128-bit input.

§

fn hash_to_group_psd2( input: &[Field<Testnet3>] ) -> Result<Group<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 2 on the affine curve.

§

fn hash_to_group_psd4( input: &[Field<Testnet3>] ) -> Result<Group<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 4 on the affine curve.

§

fn hash_to_group_psd8( input: &[Field<Testnet3>] ) -> Result<Group<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 8 on the affine curve.

§

fn hash_to_scalar_psd2( input: &[Field<Testnet3>] ) -> Result<Scalar<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 2 on the scalar field.

§

fn hash_to_scalar_psd4( input: &[Field<Testnet3>] ) -> Result<Scalar<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 4 on the scalar field.

§

fn hash_to_scalar_psd8( input: &[Field<Testnet3>] ) -> Result<Scalar<Testnet3>, Error>

Returns the Poseidon hash with an input rate of 8 on the scalar field.

§

fn merkle_tree_bhp<const DEPTH: u8>( leaves: &[Vec<bool, Global>] ) -> Result<MerkleTree<Testnet3, BHP<Testnet3, 8, 54>, BHP<Testnet3, 6, 43>, DEPTH>, Error>

Returns a Merkle tree with a BHP leaf hasher of 1024-bits and a BHP path hasher of 512-bits.

§

fn merkle_tree_psd<const DEPTH: u8>( leaves: &[Vec<Field<Testnet3>, Global>] ) -> Result<MerkleTree<Testnet3, Poseidon<Testnet3, 4>, Poseidon<Testnet3, 2>, DEPTH>, Error>

Returns a Merkle tree with a Poseidon leaf hasher with input rate of 4 and a Poseidon path hasher with input rate of 2.

§

fn verify_merkle_path_bhp<const DEPTH: u8>( path: &MerklePath<Testnet3, DEPTH>, root: &Field<Testnet3>, leaf: &Vec<bool, Global> ) -> bool

Returns true if the given Merkle path is valid for the given root and leaf.

§

fn verify_merkle_path_psd<const DEPTH: u8>( path: &MerklePath<Testnet3, DEPTH>, root: &Field<Testnet3>, leaf: &Vec<Field<Testnet3>, Global> ) -> bool

Returns true if the given Merkle path is valid for the given root and leaf.

§

const GENESIS_TIMESTAMP: i64 = 1_680_307_200i64

The fixed timestamp of the genesis block.
§

const GENESIS_COINBASE_TARGET: u64 = 4_095u64

The genesis block coinbase target.
§

const GENESIS_PROOF_TARGET: u64 = 32u64

The genesis block proof target.
§

const STARTING_SUPPLY: u64 = 1_500_000_000_000_000u64

The starting supply of Aleo credits.
§

const DEPLOYMENT_FEE_MULTIPLIER: u64 = 1_000u64

The cost in microcredits per byte for the deployment transaction.
§

const MAX_FEE: u64 = 1_000_000_000_000_000u64

The maximum number of microcredits that can be spent as a fee.
§

const ANCHOR_TIME: u16 = 25u16

The anchor time per block in seconds, which must be greater than the round time per block.
§

const COINBASE_PUZZLE_DEGREE: u32 = 8_191u32

The coinbase puzzle degree.
§

const MAX_PROVER_SOLUTIONS: usize = 256usize

The maximum number of prover solutions that can be included per block.
§

const NUM_BLOCKS_PER_EPOCH: u32 = 256u32

The number of blocks per epoch (1 hour).
§

const MAX_DATA_ENTRIES: usize = 32usize

The maximum number of entries in data.
§

const MAX_DATA_DEPTH: usize = 32usize

The maximum recursive depth of an entry. Note: This value must be strictly less than u8::MAX.
§

const MAX_DATA_SIZE_IN_FIELDS: u32 = (128 * 1024 * 8 / Field<Self>::SIZE_IN_DATA_BITS) as u32

The maximum number of fields in data (must not exceed u16::MAX).
§

const MIN_STRUCT_ENTRIES: usize = 1usize

The minimum number of entries in a struct.
§

const MAX_STRUCT_ENTRIES: usize = Self::MAX_DATA_ENTRIES

The maximum number of entries in a struct.
§

const MIN_RECORD_ENTRIES: usize = 1usize

The minimum number of entries in a record.
§

const MAX_RECORD_ENTRIES: usize = Self::MIN_RECORD_ENTRIES.saturating_add(Self::MAX_DATA_ENTRIES)

The maximum number of entries in a record.
§

const MAX_MAPPINGS: usize = 31usize

The maximum number of mappings in a program.
§

const MAX_FUNCTIONS: usize = 31usize

The maximum number of functions in a program.
§

const MAX_OPERANDS: usize = Self::MAX_INPUTS

The maximum number of operands in an instruction.
§

const MAX_INSTRUCTIONS: usize = 65_535usize

The maximum number of instructions in a closure or function.
§

const MAX_COMMANDS: usize = 65_535usize

The maximum number of commands in finalize.
§

const MAX_WRITES: u16 = 10u16

The maximum number of write commands in finalize.
§

const MAX_INPUTS: usize = 16usize

The maximum number of inputs per transition.
§

const MAX_OUTPUTS: usize = 16usize

The maximum number of outputs per transition.
§

impl PartialEq<Testnet3> for Testnet3

§

fn eq(&self, other: &Testnet3) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

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

impl Serialize for Testnet3

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for Testnet3

§

impl Eq for Testnet3

§

impl StructuralEq for Testnet3

§

impl StructuralPartialEq for Testnet3

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<'de, T> DeserializeExt<'de> for Twhere T: DeserializeOwned,

§

fn take_from_value<D>( value: &mut Value, field: &str ) -> Result<T, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,

source§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

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

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

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

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

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

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,