Wrapper around NBitcoin's ECDSASignature type for convenience. It has following difference
1. It is equatable
2. Some Convenience methods for serialization
3. Custom ToString
Union case | Description |
Full Usage:
Empty
|
|
|
|
Instance member | Description |
Full Usage:
this.AsString
Returns: string
|
|
|
Logic does not really matter here. This is just for making life easier by enabling automatic implementation
of
|
Full Usage:
this.ToBytesCompact
Returns: byte[]
|
** Description ** Bitcoin Layer 1 forces (by consensus) DER encoding for the signatures. This is not optimal, but remaining as a rule since changing consensus is not easy. However in layer2, there are no such rules. So we use more optimal serialization by This function. Note it does not include the recovery id. so its always 64 bytes Output (serialized R value + S value) in byte array.
|
Full Usage:
this.ToDER
Returns: byte[]
|
|
|
|
Static member | Description |
Full Usage:
LNECDSASignature.FromBytesCompact(bytes, ?withRecId)
Parameters:
byte array
?withRecId : bool
Returns: LNECDSASignature
|
|
|
|