Enum essential_constraint_vm::asm::opcode::Crypto
source · #[repr(u8)]pub enum Crypto {
Sha256 = 80,
VerifyEd25519 = 81,
RecoverSecp256k1 = 82,
}Expand description
Operations providing cryptographic functionality.
Variants§
Sha256 = 80
0x50
Opcode associated with the Crypto::Sha256 operation.
VerifyEd25519 = 81
0x51
Opcode associated with the Crypto::VerifyEd25519 operation.
RecoverSecp256k1 = 82
0x52
Opcode associated with the Crypto::RecoverSecp256k1 operation.
Trait Implementations§
source§impl From<Crypto> for Constraint
impl From<Crypto> for Constraint
source§fn from(subgroup: Crypto) -> Constraint
fn from(subgroup: Crypto) -> Constraint
Converts to this type from the input type.
source§impl Ord for Crypto
impl Ord for Crypto
source§impl ParseOp for Crypto
impl ParseOp for Crypto
source§fn parse_op(
&self,
bytes: &mut impl Iterator<Item = u8>,
) -> Result<<Crypto as ParseOp>::Op, <Crypto as ParseOp>::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<<Crypto as ParseOp>::Op, <Crypto as ParseOp>::Error>
Attempt to parse the operation associated with the opcode from the given bytes.
Only consumes the bytes necessary to construct any associated data.
Returns an error in the case that the given bytes iterator
contains insufficient bytes to parse the op.
§type Error = NotEnoughBytesError
type Error = NotEnoughBytesError
Any error that might occur while parsing.
source§impl PartialOrd for Crypto
impl PartialOrd for Crypto
impl Copy for Crypto
impl Eq for Crypto
impl StructuralPartialEq for Crypto
Auto Trait Implementations§
impl Freeze for Crypto
impl RefUnwindSafe for Crypto
impl Send for Crypto
impl Sync for Crypto
impl Unpin for Crypto
impl UnwindSafe for Crypto
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more