#[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 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<Self::Op, Self::Error>
fn parse_op( &self, bytes: &mut impl Iterator<Item = u8>, ) -> Result<Self::Op, Self::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.
Source§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