Class KeyPair
Assembly: Algorand.dll
Syntax
public class KeyPair : IDisposable
Constructors
|
Edit this page
View Source
KeyPair(SecureRandom)
Declaration
public KeyPair(SecureRandom random)
Parameters
| Type |
Name |
Description |
| SecureRandom |
random |
|
|
Edit this page
View Source
KeyPair(byte[])
Declaration
public KeyPair(byte[] privateKey)
Parameters
| Type |
Name |
Description |
| byte[] |
privateKey |
|
Properties
|
Edit this page
View Source
ClearTextPrivateKey
Declaration
public byte[] ClearTextPrivateKey { get; }
Property Value
|
Edit this page
View Source
ClearTextPublicKey
Declaration
public byte[] ClearTextPublicKey { get; }
Property Value
|
Edit this page
View Source
Pair
Declaration
public AsymmetricCipherKeyPair Pair { get; }
Property Value
| Type |
Description |
| AsymmetricCipherKeyPair |
|
|
Edit this page
View Source
PublicKey
Declaration
public Ed25519PublicKeyParameters PublicKey { get; }
Property Value
| Type |
Description |
| Ed25519PublicKeyParameters |
|
Methods
|
Edit this page
View Source
Dispose()
Best-effort wipe of the private key material held by this instance: zeroes
ClearTextPrivateKey and drops the references to the BouncyCastle
key objects so they become eligible for garbage collection. This cannot guarantee
no copy of the key remains elsewhere in process memory (e.g. from prior GC
compaction), but it removes the one copy this SDK keeps a live, reachable
reference to.
Declaration
|
Edit this page
View Source
ToMnemonic()
Declaration
public string ToMnemonic()
Returns
Implements