Struct aleo_wasm::programs::verifying_key::VerifyingKey
source · pub struct VerifyingKey(/* private fields */);
Expand description
Verifying key for a function within an Aleo program
Implementations§
source§impl VerifyingKey
impl VerifyingKey
sourcepub fn bond_public_verifier() -> VerifyingKey
pub fn bond_public_verifier() -> VerifyingKey
Returns the verifying key for the bond_public function
@returns {VerifyingKey} Verifying key for the bond_public function
sourcepub fn claim_unbond_public_verifier() -> VerifyingKey
pub fn claim_unbond_public_verifier() -> VerifyingKey
Returns the verifying key for the claim_delegator function
@returns {VerifyingKey} Verifying key for the claim_unbond_public function
sourcepub fn fee_private_verifier() -> VerifyingKey
pub fn fee_private_verifier() -> VerifyingKey
Returns the verifying key for the fee_private function
@returns {VerifyingKey} Verifying key for the fee_private function
sourcepub fn fee_public_verifier() -> VerifyingKey
pub fn fee_public_verifier() -> VerifyingKey
Returns the verifying key for the fee_public function
@returns {VerifyingKey} Verifying key for the fee_public function
sourcepub fn inclusion_verifier() -> VerifyingKey
pub fn inclusion_verifier() -> VerifyingKey
Returns the verifying key for the inclusion function
@returns {VerifyingKey} Verifying key for the inclusion function
sourcepub fn join_verifier() -> VerifyingKey
pub fn join_verifier() -> VerifyingKey
Returns the verifying key for the join function
@returns {VerifyingKey} Verifying key for the join function
sourcepub fn set_validator_state_verifier() -> VerifyingKey
pub fn set_validator_state_verifier() -> VerifyingKey
Returns the verifying key for the set_validator_state function
@returns {VerifyingKey} Verifying key for the set_validator_state function
sourcepub fn split_verifier() -> VerifyingKey
pub fn split_verifier() -> VerifyingKey
Returns the verifying key for the split function
@returns {VerifyingKey} Verifying key for the split function
sourcepub fn transfer_private_verifier() -> VerifyingKey
pub fn transfer_private_verifier() -> VerifyingKey
Returns the verifying key for the transfer_private function
@returns {VerifyingKey} Verifying key for the transfer_private function
sourcepub fn transfer_private_to_public_verifier() -> VerifyingKey
pub fn transfer_private_to_public_verifier() -> VerifyingKey
Returns the verifying key for the transfer_private_to_public function
@returns {VerifyingKey} Verifying key for the transfer_private_to_public function
sourcepub fn transfer_public_verifier() -> VerifyingKey
pub fn transfer_public_verifier() -> VerifyingKey
Returns the verifying key for the transfer_public function
@returns {VerifyingKey} Verifying key for the transfer_public function
sourcepub fn transfer_public_to_private_verifier() -> VerifyingKey
pub fn transfer_public_to_private_verifier() -> VerifyingKey
Returns the verifying key for the transfer_public_to_private function
@returns {VerifyingKey} Verifying key for the transfer_public_to_private function
sourcepub fn unbond_delegator_as_validator_verifier() -> VerifyingKey
pub fn unbond_delegator_as_validator_verifier() -> VerifyingKey
Returns the verifying key for the unbond_delegator_as_delegator function
@returns {VerifyingKey} Verifying key for the unbond_delegator_as_delegator function
sourcepub fn unbond_public_verifier() -> VerifyingKey
pub fn unbond_public_verifier() -> VerifyingKey
Returns the verifying key for the unbond_delegator_as_delegator function
@returns {VerifyingKey} Verifying key for the unbond_delegator_as_delegator function
sourcepub fn is_bond_public_verifier(&self) -> bool
pub fn is_bond_public_verifier(&self) -> bool
Returns the verifying key for the bond_public function
@returns {VerifyingKey} Verifying key for the bond_public function
sourcepub fn is_claim_unbond_public_verifier(&self) -> bool
pub fn is_claim_unbond_public_verifier(&self) -> bool
Verifies the verifying key is for the claim_delegator function
@returns {bool}
sourcepub fn is_fee_private_verifier(&self) -> bool
pub fn is_fee_private_verifier(&self) -> bool
Verifies the verifying key is for the fee_private function
@returns {bool}
sourcepub fn is_fee_public_verifier(&self) -> bool
pub fn is_fee_public_verifier(&self) -> bool
Verifies the verifying key is for the fee_public function
@returns {bool}
sourcepub fn is_inclusion_verifier(&self) -> bool
pub fn is_inclusion_verifier(&self) -> bool
Verifies the verifying key is for the inclusion function
@returns {bool}
sourcepub fn is_join_verifier(&self) -> bool
pub fn is_join_verifier(&self) -> bool
Verifies the verifying key is for the join function
@returns {bool}
sourcepub fn is_set_validator_state_verifier(&self) -> bool
pub fn is_set_validator_state_verifier(&self) -> bool
Verifies the verifying key is for the set_validator_state function
@returns {bool}
sourcepub fn is_split_verifier(&self) -> bool
pub fn is_split_verifier(&self) -> bool
Verifies the verifying key is for the split function
@returns {bool}
sourcepub fn is_transfer_private_verifier(&self) -> bool
pub fn is_transfer_private_verifier(&self) -> bool
Verifies the verifying key is for the transfer_private function
@returns {bool}
sourcepub fn is_transfer_private_to_public_verifier(&self) -> bool
pub fn is_transfer_private_to_public_verifier(&self) -> bool
Verifies the verifying key is for the transfer_private_to_public function
@returns {bool}
sourcepub fn is_transfer_public_verifier(&self) -> bool
pub fn is_transfer_public_verifier(&self) -> bool
Verifies the verifying key is for the transfer_public function
@returns {bool}
sourcepub fn is_transfer_public_to_private_verifier(&self) -> bool
pub fn is_transfer_public_to_private_verifier(&self) -> bool
Verifies the verifying key is for the transfer_public_to_private function
@returns {bool}
sourcepub fn is_unbond_delegator_as_validator_verifier(&self) -> bool
pub fn is_unbond_delegator_as_validator_verifier(&self) -> bool
Verifies the verifying key is for the unbond_delegator_as_delegator function
@returns {bool}
sourcepub fn is_unbond_public_verifier(&self) -> bool
pub fn is_unbond_public_verifier(&self) -> bool
Verifies the verifying key is for the unbond_public function
@returns {bool}
source§impl VerifyingKey
impl VerifyingKey
sourcepub fn checksum(&self) -> String
pub fn checksum(&self) -> String
Get the checksum of the verifying key
@returns {string} Checksum of the verifying key
sourcepub fn copy(&self) -> VerifyingKey
pub fn copy(&self) -> VerifyingKey
Create a copy of the verifying key
@returns {VerifyingKey} A copy of the verifying key
sourcepub fn from_bytes(bytes: &[u8]) -> Result<VerifyingKey, String>
pub fn from_bytes(bytes: &[u8]) -> Result<VerifyingKey, String>
Construct a new verifying key from a byte array
@param {Uint8Array} bytes Byte representation of a verifying key @returns {VerifyingKey | Error}
sourcepub fn from_string(string: &str) -> Result<VerifyingKey, String>
pub fn from_string(string: &str) -> Result<VerifyingKey, String>
Create a verifying key from string
@param {String} string String representation of a verifying key @returns {VerifyingKey | Error}
Methods from Deref<Target = VerifyingKey<Testnet3>>§
Methods from Deref<Target = CircuitVerifyingKey<<N as Environment>::PairingCurve>>§
Trait Implementations§
source§impl Clone for VerifyingKey
impl Clone for VerifyingKey
source§fn clone(&self) -> VerifyingKey
fn clone(&self) -> VerifyingKey
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VerifyingKey
impl Debug for VerifyingKey
source§impl Deref for VerifyingKey
impl Deref for VerifyingKey
source§impl From<&VerifyingKey> for VerifyingKey<Testnet3>
impl From<&VerifyingKey> for VerifyingKey<Testnet3>
source§fn from(verifying_key: &VerifyingKey) -> VerifyingKey<Testnet3>
fn from(verifying_key: &VerifyingKey) -> VerifyingKey<Testnet3>
source§impl From<VerifyingKey<Testnet3>> for VerifyingKey
impl From<VerifyingKey<Testnet3>> for VerifyingKey
source§fn from(verifying_key: VerifyingKey<Testnet3>) -> VerifyingKey
fn from(verifying_key: VerifyingKey<Testnet3>) -> VerifyingKey
source§impl From<VerifyingKey> for JsValue
impl From<VerifyingKey> for JsValue
source§fn from(value: VerifyingKey) -> Self
fn from(value: VerifyingKey) -> Self
source§impl From<VerifyingKey> for VerifyingKey<Testnet3>
impl From<VerifyingKey> for VerifyingKey<Testnet3>
source§fn from(verifying_key: VerifyingKey) -> VerifyingKey<Testnet3>
fn from(verifying_key: VerifyingKey) -> VerifyingKey<Testnet3>
source§impl FromWasmAbi for VerifyingKey
impl FromWasmAbi for VerifyingKey
source§impl IntoWasmAbi for VerifyingKey
impl IntoWasmAbi for VerifyingKey
source§impl LongRefFromWasmAbi for VerifyingKey
impl LongRefFromWasmAbi for VerifyingKey
source§impl OptionFromWasmAbi for VerifyingKey
impl OptionFromWasmAbi for VerifyingKey
source§impl OptionIntoWasmAbi for VerifyingKey
impl OptionIntoWasmAbi for VerifyingKey
source§impl PartialEq for VerifyingKey
impl PartialEq for VerifyingKey
source§impl RefFromWasmAbi for VerifyingKey
impl RefFromWasmAbi for VerifyingKey
§type Anchor = Ref<'static, VerifyingKey>
type Anchor = Ref<'static, VerifyingKey>
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for VerifyingKey
impl RefMutFromWasmAbi for VerifyingKey
source§impl TryFromJsValue for VerifyingKey
impl TryFromJsValue for VerifyingKey
source§impl VectorFromWasmAbi for VerifyingKey
impl VectorFromWasmAbi for VerifyingKey
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[VerifyingKey]>
source§impl VectorIntoWasmAbi for VerifyingKey
impl VectorIntoWasmAbi for VerifyingKey
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[VerifyingKey]>) -> Self::Abi
source§impl WasmDescribeVector for VerifyingKey
impl WasmDescribeVector for VerifyingKey
Auto Trait Implementations§
impl RefUnwindSafe for VerifyingKey
impl Send for VerifyingKey
impl Sync for VerifyingKey
impl Unpin for VerifyingKey
impl UnwindSafe for VerifyingKey
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.