Show / Hide Table of Contents

Class DefaultCryptoBackend<T>

Inheritance
System.Object
DefaultCryptoBackend<T>
Implements
ICryptoBackend<T>
Namespace: Libplanet.Crypto
Assembly: Libplanet.Crypto.dll
Syntax
public class DefaultCryptoBackend<T> : object, ICryptoBackend<T> where T : HashAlgorithm
Type Parameters
Name Description
T

Methods

| Improve this Doc View Source

Sign(HashDigest<T>, PrivateKey)

Declaration
public byte[] Sign(HashDigest<T> messageHash, PrivateKey privateKey)
Parameters
Type Name Description
HashDigest<T> messageHash
PrivateKey privateKey
Returns
Type Description
System.Byte[]
| Improve this Doc View Source

Verify(HashDigest<T>, Byte[], PublicKey)

Declaration
public bool Verify(HashDigest<T> messageHash, byte[] signature, PublicKey publicKey)
Parameters
Type Name Description
HashDigest<T> messageHash
System.Byte[] signature
PublicKey publicKey
Returns
Type Description
System.Boolean

Implements

ICryptoBackend<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium