pub struct NeoCrypto;Expand description
Deterministic crypto helpers for tests and examples.
Implementations§
Source§impl NeoCrypto
impl NeoCrypto
pub fn sha256(data: &NeoByteString) -> Result<NeoByteString, NeoError>
pub fn ripemd160(data: &NeoByteString) -> Result<NeoByteString, NeoError>
pub fn keccak256(data: &NeoByteString) -> Result<NeoByteString, NeoError>
pub fn keccak512(data: &NeoByteString) -> Result<NeoByteString, NeoError>
pub fn murmur32( data: &NeoByteString, seed: NeoInteger, ) -> Result<NeoInteger, NeoError>
pub fn verify_signature( _message: &NeoByteString, signature: &NeoByteString, public_key: &NeoByteString, ) -> Result<NeoBoolean, NeoError>
pub fn verify_signature_with_recovery( _message: &NeoByteString, signature: &NeoByteString, ) -> Result<NeoByteString, NeoError>
Auto Trait Implementations§
impl Freeze for NeoCrypto
impl RefUnwindSafe for NeoCrypto
impl Send for NeoCrypto
impl Sync for NeoCrypto
impl Unpin for NeoCrypto
impl UnwindSafe for NeoCrypto
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