pub fn code(&self) -> u32 {
        match self {
            CryptoError::MessageTooLong { .. } => 2,
            CryptoError::InvalidHashFormat { .. } => 3,
            CryptoError::InvalidSignatureFormat { .. } => 4,
            CryptoError::InvalidPubkeyFormat { .. } => 5,
            CryptoError::InvalidRecoveryParam { .. } => 6,
            CryptoError::BatchErr { .. } => 7,
            CryptoError::InputsTooLarger { .. } => 8,
            CryptoError::InputTooLong { .. } => 9,
            CryptoError::GenericErr { .. } => 10,
        }
    }
/// Numeric error code that can easily be passed over the
/// contract VM boundary.
Numeric error code that can easily be passed over the
contract VM boundary.
Numeric error code that can easily be passed over the contract VM boundary .
pub fn code(&self) -> u32 {
        match self {
            CryptoError::MessageTooLong { .. } => 2,
            CryptoError::InvalidHashFormat { .. } => 3,
            CryptoError::InvalidSignatureFormat { .. } => 4,
            CryptoError::InvalidPubkeyFormat { .. } => 5,
            CryptoError::InvalidRecoveryParam { .. } => 6,
            CryptoError::BatchErr { .. } => 7,
            CryptoError::InputsTooLarger { .. } => 8,
            CryptoError::InputTooLong { .. } => 9,
            CryptoError::GenericErr { .. } => 10,
        }
    }
pub fn code ( & self ) -> u32 { match self { CryptoError :: MessageTooLong { .. } => 2 , CryptoError :: InvalidHashFormat { .. } => 3 , CryptoError :: InvalidSignatureFormat { .. } => 4 , CryptoError :: InvalidPubkeyFormat { .. } => 5 , CryptoError :: InvalidRecoveryParam { .. } => 6 , CryptoError :: BatchErr { .. } => 7 , CryptoError :: InputsTooLarger { .. } => 8 , CryptoError :: InputTooLong { .. } => 9 , CryptoError :: GenericErr { .. } => 10 , } }
Numeric error code that can easily be passed over the
contract VM boundary.
Numeric error code that can easily be passed over the contract VM boundary .
&self