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
IsZero
public bool IsZero { get; }
Property Value
One
public static TxId One { get; }
Property Value
Zero
public static TxId Zero { get; }
Property Value
Methods
Equals(TxId)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(TxId other)
Parameters
other
TxIdAn 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.
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
Returns
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
implicit operator ReadOnlySpan<byte>(TxId)
public static implicit operator ReadOnlySpan<byte>(TxId compactPubKey)
Parameters
compactPubKey
TxId
Returns
implicit operator TxId(byte[])
public static implicit operator TxId(byte[] bytes)
Parameters
bytes
byte[]
Returns
operator !=(TxId, TxId)
public static bool operator !=(TxId left, TxId right)