Show / Hide Table of Contents

CryptoLib Class

Provides a series methods of the native contract CryptoLib . The contract hash is 0x726cb6e0cd8628a1350a611384688911ab75f51b

Namespace: Neo.SmartContract.Framework.Native

Assembly: Neo.SmartContract.Framework

Syntax

public static class CryptoLib

Attributes

NameDescription
HashGets the contract hash

Methods

NameDescription
Sha256(ByteString value)Calculates the byte array with SHA256 hash
ripemd160(ByteString value)Calculates the byte array with RIPEMD160
VerifyWithECDsa(ByteString message, Cryptography.ECC.ECPoint pubkey, ByteString signature, NamedCurve curve)Uses elliptic curve to verify the signature