Feature bits described in BOLT 9
Use HasFeature
to see if it has specific feature or not.
Instance member | Description |
|
|
|
|
|
If second argument is not specified. It will check both
|
Full Usage:
this.PrettyPrint
Returns: string
|
|
Full Usage:
this.SetFeature
Parameters:
Feature
support : FeaturesSupport
on : bool
Returns: FeatureBits
|
|
Full Usage:
this.ToByteArray
Returns: byte[]
|
|
Full Usage:
this.ToHex
Returns: string
|
|
Static member | Description |
|
|
|
Throws FormatException TODO: ugliness of this method is caused by binary serialization throws error instead of returning Result We should refactor serialization altogether at some point
|
|
|
Full Usage:
FeatureBits.ParseHex(str)
Parameters:
string
Returns: Result<FeatureBits, FeatureError>
|
|
|
|
Full Usage:
FeatureBits.TryCreate(v)
Parameters:
int64
Returns: Result<FeatureBits, FeatureError>
|
|
Full Usage:
FeatureBits.TryCreate(bytes)
Parameters:
byte array
Returns: Result<FeatureBits, FeatureError>
|
|
Full Usage:
FeatureBits.TryCreate(ba)
Parameters:
BitArray
Returns: Result<FeatureBits, FeatureError>
|
|
|
|
|
|