Struct snarkvm_circuit_program::ProgramID
source · pub struct ProgramID<A: Aleo> { /* private fields */ }Expand description
A program ID is of the form {name}.{network}.
If no network-level domain is specified, the default network is used.
Implementations§
source§impl<A: Aleo> ProgramID<A>
impl<A: Aleo> ProgramID<A>
sourcepub fn to_address(&self) -> Address<A>
pub fn to_address(&self) -> Address<A>
Returns the program address for this program ID.
source§impl<A: Aleo> ProgramID<A>
impl<A: Aleo> ProgramID<A>
sourcepub const fn name(&self) -> &Identifier<A>
pub const fn name(&self) -> &Identifier<A>
Returns the program name.
sourcepub const fn network(&self) -> &Identifier<A>
pub const fn network(&self) -> &Identifier<A>
Returns the network-level domain (NLD).
Trait Implementations§
source§impl<A: Aleo> Eject for ProgramID<A>
impl<A: Aleo> Eject for ProgramID<A>
source§fn eject_mode(&self) -> Mode
fn eject_mode(&self) -> Mode
Ejects the mode of the program ID.
source§fn eject_value(&self) -> Self::Primitive
fn eject_value(&self) -> Self::Primitive
Ejects a program ID into a primitive.
type Primitive = ProgramID<<A as Environment>::Network>
§fn is_constant(&self) -> bool
fn is_constant(&self) -> bool
Returns
true if the circuit is a constant.§fn is_private(&self) -> bool
fn is_private(&self) -> bool
Returns
true if the circuit is a private.source§impl<A: Aleo> ToBits for &ProgramID<A>
impl<A: Aleo> ToBits for &ProgramID<A>
source§fn to_bits_le(&self) -> Vec<Self::Boolean>
fn to_bits_le(&self) -> Vec<Self::Boolean>
Returns the little-endian bits of the program ID.
source§fn to_bits_be(&self) -> Vec<Self::Boolean>
fn to_bits_be(&self) -> Vec<Self::Boolean>
Returns the big-endian bits of the program ID.