Struct aleo_rust::snarkvm_types::Deployment
source · pub struct Deployment<N>where
N: Network,{ /* private fields */ }
Implementations§
source§impl<N> Deployment<N>where
N: Network,
impl<N> Deployment<N>where N: Network,
sourcepub fn new(
edition: u16,
program: ProgramCore<N, Instruction<N>, Command<N>>,
verifying_keys: Vec<(Identifier<N>, (VerifyingKey<N>, Certificate<N>)), Global>
) -> Result<Deployment<N>, Error>
pub fn new( edition: u16, program: ProgramCore<N, Instruction<N>, Command<N>>, verifying_keys: Vec<(Identifier<N>, (VerifyingKey<N>, Certificate<N>)), Global> ) -> Result<Deployment<N>, Error>
Initializes a new deployment.
sourcepub fn check_is_ordered(&self) -> Result<(), Error>
pub fn check_is_ordered(&self) -> Result<(), Error>
Checks that the deployment is ordered.
sourcepub fn size_in_bytes(&self) -> Result<u64, Error>
pub fn size_in_bytes(&self) -> Result<u64, Error>
Returns the size in bytes.
sourcepub const fn program(&self) -> &ProgramCore<N, Instruction<N>, Command<N>>
pub const fn program(&self) -> &ProgramCore<N, Instruction<N>, Command<N>>
Returns the program.
sourcepub const fn program_id(&self) -> &ProgramID<N>
pub const fn program_id(&self) -> &ProgramID<N>
Returns the program.
sourcepub const fn verifying_keys(
&self
) -> &Vec<(Identifier<N>, (VerifyingKey<N>, Certificate<N>)), Global>
pub const fn verifying_keys( &self ) -> &Vec<(Identifier<N>, (VerifyingKey<N>, Certificate<N>)), Global>
Returns the verifying keys.
sourcepub fn to_deployment_id(&self) -> Result<Field<N>, Error>
pub fn to_deployment_id(&self) -> Result<Field<N>, Error>
Returns the deployment ID.
Trait Implementations§
source§impl<N> Clone for Deployment<N>where
N: Clone + Network,
impl<N> Clone for Deployment<N>where N: Clone + Network,
source§fn clone(&self) -> Deployment<N>
fn clone(&self) -> Deployment<N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<N> Debug for Deployment<N>where
N: Network,
impl<N> Debug for Deployment<N>where N: Network,
source§impl<'de, N> Deserialize<'de> for Deployment<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Deployment<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Deployment<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Deployment<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the deployment from a string or bytes.
source§impl<N> Display for Deployment<N>where
N: Network,
impl<N> Display for Deployment<N>where N: Network,
source§impl<N> FromBytes for Deployment<N>where
N: Network,
impl<N> FromBytes for Deployment<N>where N: Network,
source§impl<N> FromStr for Deployment<N>where
N: Network,
impl<N> FromStr for Deployment<N>where N: Network,
source§impl<N> PartialEq<Deployment<N>> for Deployment<N>where
N: PartialEq<N> + Network,
impl<N> PartialEq<Deployment<N>> for Deployment<N>where N: PartialEq<N> + Network,
source§fn eq(&self, other: &Deployment<N>) -> bool
fn eq(&self, other: &Deployment<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<N> Serialize for Deployment<N>where
N: Network,
impl<N> Serialize for Deployment<N>where N: Network,
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serializes the deployment into string or bytes.
source§impl<N> ToBytes for Deployment<N>where
N: Network,
impl<N> ToBytes for Deployment<N>where N: Network,
impl<N> Eq for Deployment<N>where N: Eq + Network,
impl<N> StructuralEq for Deployment<N>where N: Network,
impl<N> StructuralPartialEq for Deployment<N>where N: Network,
Auto Trait Implementations§
impl<N> RefUnwindSafe for Deployment<N>where N: RefUnwindSafe, <N as Environment>::Field: RefUnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: RefUnwindSafe, <N as Environment>::Projective: RefUnwindSafe, <N as Environment>::Scalar: RefUnwindSafe,
impl<N> Send for Deployment<N>
impl<N> Sync for Deployment<N>
impl<N> Unpin for Deployment<N>where N: Unpin, <N as Environment>::Field: Unpin, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: Unpin, <N as Environment>::Projective: Unpin, <N as Environment>::Scalar: Unpin,
impl<N> UnwindSafe for Deployment<N>where N: UnwindSafe, <N as Environment>::Field: UnwindSafe, <<N as Environment>::PairingCurve as PairingEngine>::G1Affine: UnwindSafe + RefUnwindSafe, <N as Environment>::Projective: UnwindSafe, <N as Environment>::Scalar: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
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,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
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,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
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,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.