Struct CryptoKeyPair
- Namespace
- NLightning.Domain.Crypto.ValueObjects
- Assembly
- NLightning.Domain.dll
A secp256k1 private/public key pair.
public readonly record struct CryptoKeyPair : IEquatable<CryptoKeyPair>
- Implements
- Inherited Members
Constructors
CryptoKeyPair(PrivKey, CompactPubKey)
Initializes a new instance of the CryptoKeyPair class.
public CryptoKeyPair(PrivKey privKey, CompactPubKey compactPubKey)
Parameters
privKey
PrivKeyThe private key.
compactPubKey
CompactPubKey
Properties
CompactPubKey
Gets the public key.
public CompactPubKey CompactPubKey { get; }
Property Value
PrivKey
Gets the private key.
public PrivKey PrivKey { get; }