Interface ICryptoBackend
Cryptography backend interface.
Namespace: Libplanet.Crypto
Assembly: Libplanet.dll
Syntax
public interface ICryptoBackend
Methods
| Improve this Doc View SourceVerify(HashDigest<SHA256>, Byte[], PublicKey)
Verifies whether a signature
was created from
a messageHash
with the corresponding PrivateKey.
Declaration
bool Verify(HashDigest<SHA256> messageHash, byte[] signature, PublicKey publicKey)
Parameters
Type | Name | Description |
---|---|---|
HashDigest<SHA256> | messageHash | A 32 bytes message hash digest hashed with SHA256. |
Byte[] | signature | A signature that was created from the
|
PublicKey | publicKey | PublicKey used for verification. |
Returns
Type | Description |
---|---|
Boolean |
|