Show / Hide Table of Contents

Class DefaultCryptoBackend<T>

Inheritance
Object
DefaultCryptoBackend<T>
Implements
ICryptoBackend<T>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
System.Object.ToString()
Namespace: Libplanet.Crypto
Assembly: Libplanet.Crypto.dll
Syntax
public class DefaultCryptoBackend<T> : 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