Table of Contents

Struct TxId

Namespace
NLightning.Domain.Bitcoin.ValueObjects
Assembly
NLightning.Domain.dll
public readonly struct TxId : IEquatable<TxId>
Implements
Inherited Members

Constructors

TxId(byte[])

public TxId(byte[] hash)

Parameters

hash byte[]

Properties

IsOne

public bool IsOne { get; }

Property Value

bool

IsZero

public bool IsZero { get; }

Property Value

bool

One

public static TxId One { get; }

Property Value

TxId

Zero

public static TxId Zero { get; }

Property Value

TxId

Methods

Equals(TxId)

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

public bool Equals(TxId other)

Parameters

other TxId

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.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(TxId, TxId)

public static bool operator ==(TxId left, TxId right)

Parameters

left TxId
right TxId

Returns

bool

implicit operator byte[](TxId)

public static implicit operator byte[](TxId txId)

Parameters

txId TxId

Returns

byte[]

implicit operator ReadOnlyMemory<byte>(TxId)

public static implicit operator ReadOnlyMemory<byte>(TxId compactPubKey)

Parameters

compactPubKey TxId

Returns

ReadOnlyMemory<byte>

implicit operator ReadOnlySpan<byte>(TxId)

public static implicit operator ReadOnlySpan<byte>(TxId compactPubKey)

Parameters

compactPubKey TxId

Returns

ReadOnlySpan<byte>

implicit operator TxId(byte[])

public static implicit operator TxId(byte[] bytes)

Parameters

bytes byte[]

Returns

TxId

operator !=(TxId, TxId)

public static bool operator !=(TxId left, TxId right)

Parameters

left TxId
right TxId

Returns

bool