pub struct NeoVerifier { /* private fields */ }Expand description
NEO ECDSA verifier (P-256).
Implementations§
Source§impl NeoVerifier
impl NeoVerifier
Sourcepub fn from_public_key_bytes(bytes: &[u8]) -> Result<Self, SignerError>
pub fn from_public_key_bytes(bytes: &[u8]) -> Result<Self, SignerError>
Create from SEC1 public key bytes.
Trait Implementations§
Source§impl Verifier for NeoVerifier
impl Verifier for NeoVerifier
Source§type Signature = NeoSignature
type Signature = NeoSignature
The signature type this verifier accepts.
Source§type Error = SignerError
type Error = SignerError
The error type returned on failure.
Source§fn verify(
&self,
message: &[u8],
signature: &NeoSignature,
) -> Result<bool, SignerError>
fn verify( &self, message: &[u8], signature: &NeoSignature, ) -> Result<bool, SignerError>
Verify a signature against a raw message. The implementation applies
chain-specific hashing internally.
Source§fn verify_prehashed(
&self,
digest: &[u8],
signature: &NeoSignature,
) -> Result<bool, SignerError>
fn verify_prehashed( &self, digest: &[u8], signature: &NeoSignature, ) -> Result<bool, SignerError>
Verify a signature against a pre-hashed digest.
Auto Trait Implementations§
impl Freeze for NeoVerifier
impl RefUnwindSafe for NeoVerifier
impl Send for NeoVerifier
impl Sync for NeoVerifier
impl Unpin for NeoVerifier
impl UnsafeUnpin for NeoVerifier
impl UnwindSafe for NeoVerifier
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