Struct snarkvm_ledger_block::transaction::Deployment
source · pub struct Deployment<N: Network> { /* private fields */ }
Implementations§
source§impl<N: Network> Deployment<N>
impl<N: Network> Deployment<N>
sourcepub fn new(
edition: u16,
program: Program<N>,
verifying_keys: Vec<(Identifier<N>, (VerifyingKey<N>, Certificate<N>))>
) -> Result<Self>
pub fn new( edition: u16, program: Program<N>, verifying_keys: Vec<(Identifier<N>, (VerifyingKey<N>, Certificate<N>))> ) -> Result<Self>
Initializes a new deployment.
sourcepub fn check_is_ordered(&self) -> Result<()>
pub fn check_is_ordered(&self) -> Result<()>
Checks that the deployment is ordered.
sourcepub fn size_in_bytes(&self) -> Result<u64>
pub fn size_in_bytes(&self) -> Result<u64>
Returns the size in bytes.
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>))>
pub const fn verifying_keys( &self ) -> &Vec<(Identifier<N>, (VerifyingKey<N>, Certificate<N>))>
Returns the verifying keys.
sourcepub fn to_deployment_id(&self) -> Result<Field<N>>
pub fn to_deployment_id(&self) -> Result<Field<N>>
Returns the deployment ID.
Trait Implementations§
source§impl<N: Clone + Network> Clone for Deployment<N>
impl<N: Clone + Network> Clone for Deployment<N>
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: Network> Debug for Deployment<N>
impl<N: Network> Debug for Deployment<N>
source§impl<'de, N: Network> Deserialize<'de> for Deployment<N>
impl<'de, N: Network> Deserialize<'de> for Deployment<N>
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserializes the deployment from a string or bytes.
source§impl<N: Network> Display for Deployment<N>
impl<N: Network> Display for Deployment<N>
source§impl<N: Network> FromBytes for Deployment<N>
impl<N: Network> FromBytes for Deployment<N>
source§impl<N: Network> FromStr for Deployment<N>
impl<N: Network> FromStr for Deployment<N>
source§impl<N: PartialEq + Network> PartialEq for Deployment<N>
impl<N: PartialEq + Network> PartialEq for Deployment<N>
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: Network> Serialize for Deployment<N>
impl<N: Network> Serialize for Deployment<N>
source§impl<N: Network> ToBytes for Deployment<N>
impl<N: Network> ToBytes for Deployment<N>
impl<N: Eq + Network> Eq for Deployment<N>
impl<N: Network> StructuralEq for Deployment<N>
impl<N: Network> StructuralPartialEq for Deployment<N>
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>,
§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.