Table of Contents

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

Secret

Methods

Equals(Secret)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Secret other)

Parameters

other Secret

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The 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

ReadOnlyMemory<byte>

implicit operator ReadOnlySpan<byte>(Secret)

public static implicit operator ReadOnlySpan<byte>(Secret hash)

Parameters

hash Secret

Returns

ReadOnlySpan<byte>

implicit operator Secret(byte[])

public static implicit operator Secret(byte[] bytes)

Parameters

bytes byte[]

Returns

Secret