Struct PrivKey
- Namespace
- NLightning.Domain.Crypto.ValueObjects
- Assembly
- NLightning.Domain.dll
public readonly record struct PrivKey : IEquatable<PrivKey>
- Implements
- Inherited Members
Constructors
PrivKey(byte[])
Initializes a new instance of the PrivKey struct.
public PrivKey(byte[] value)
Parameters
value
byte[]The private key value.
Properties
Value
The private key value.
public byte[] Value { get; }
Property Value
- byte[]
Operators
implicit operator byte[](PrivKey)
public static implicit operator byte[](PrivKey hash)
Parameters
hash
PrivKey
Returns
- byte[]
implicit operator ReadOnlySpan<byte>(PrivKey)
public static implicit operator ReadOnlySpan<byte>(PrivKey hash)
Parameters
hash
PrivKey
Returns
implicit operator PrivKey(byte[])
public static implicit operator PrivKey(byte[] bytes)
Parameters
bytes
byte[]