Show / Hide Table of Contents

Class Mnemonic

Helper class to produce public and private key values from mnemonic word phrases.

Inheritance
object
Mnemonic
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed class Mnemonic
Remarks

Warning: this class has not been hardened against external attacks, it keeps the root seed in memory.

Constructors

| Edit this page View Source

Mnemonic(string[], string)

Constructor taking an array of mnemonic words and a passphrase.

Declaration
public Mnemonic(string[] words, string passphrase)
Parameters
Type Name Description
string[] words

An array of words that make up the mnemonic.

string passphrase

Optional password (empty string or null is allowed for no password).

Methods

| Edit this page View Source

GenerateKeyPair(KeyDerivationPath)

Computes the HD key pair for this Mnemonic.

Declaration
public (ReadOnlyMemory<byte> publicKey, ReadOnlyMemory<byte> privateKey) GenerateKeyPair(KeyDerivationPath path)
Parameters
Type Name Description
KeyDerivationPath path

The key derivation path that should be used to generate the private and public key values.

Returns
Type Description
(ReadOnlyMemory<byte> publicKey, ReadOnlyMemory<byte> privateKey)

DER Encoded public and private key values.

  • Edit this page
  • View Source
In this article
Back to top .NET Client Library for Hiero Network and Hedera Hashgraph