Show / Hide Table of Contents

Interface ICryptoBackend

Cryptography backend interface.

Namespace: Libplanet.Crypto
Assembly: Libplanet.dll
Syntax
public interface ICryptoBackend

Methods

| Improve this Doc View Source

Verify(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 messageHash.

PublicKey publicKey

PublicKey used for verification.

Returns
Type Description
Boolean

true if the signature was created from the messageHash with the corresponding PrivateKey. Otherwise false.

  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium