Struct Secret
- Namespace
- NLightning.Domain.Crypto.ValueObjects
- Assembly
- NLightning.Domain.dll
public readonly struct Secret : IEquatable<Secret>
- Implements
- Inherited Members
Constructors
Secret(byte[])
public Secret(byte[] value)
Parameters
value
byte[]
Properties
Empty
public static Secret Empty { get; }
Property Value
Methods
Equals(Secret)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Secret other)
Parameters
other
SecretAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
implicit operator byte[](Secret)
public static implicit operator byte[](Secret hash)
Parameters
hash
Secret
Returns
- byte[]
implicit operator ReadOnlyMemory<byte>(Secret)
public static implicit operator ReadOnlyMemory<byte>(Secret hash)
Parameters
hash
Secret
Returns
implicit operator ReadOnlySpan<byte>(Secret)
public static implicit operator ReadOnlySpan<byte>(Secret hash)
Parameters
hash
Secret
Returns
implicit operator Secret(byte[])
public static implicit operator Secret(byte[] bytes)
Parameters
bytes
byte[]