DotNetLightning


MacaroonIdentifier Type

Union cases

Union case Description

UnknownVersion(version, contents)

Full Usage: UnknownVersion(version, contents)

Parameters:
    version : uint16
    contents : byte array

version : uint16
contents : byte array
Item : MacaroonIdentifierV0

Instance members

Instance member Description

this.Hash

Full Usage: this.Hash

Returns: uint256
Returns: uint256

this.ToBytes

Full Usage: this.ToBytes

Returns: byte[]
Returns: byte[]

this.ToHex

Full Usage: this.ToHex

Returns: string
Returns: string

Static members

Static member Description

MacaroonIdentifier.CreateV0(hash)

Full Usage: MacaroonIdentifier.CreateV0(hash)

Parameters:
Returns: MacaroonIdentifier
hash : PaymentHash
Returns: MacaroonIdentifier

MacaroonIdentifier.TryCreateFromBytes(b)

Full Usage: MacaroonIdentifier.TryCreateFromBytes(b)

Parameters:
    b : byte array

Returns: Result<MacaroonIdentifier, string>
b : byte array
Returns: Result<MacaroonIdentifier, string>

MacaroonIdentifier.TryParse(str)

Full Usage: MacaroonIdentifier.TryParse(str)

Parameters:
    str : string

Returns: Result<MacaroonIdentifier, string>
str : string
Returns: Result<MacaroonIdentifier, string>