Documentation ¶
Index ¶
Constants ¶
const HashSize = 32
HashSize of array used to store hashes.
const PreimageSize = 32
PreimageSize of array used to store preimagees.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hash ¶
Hash is used in several of the lightning messages and common structures. It typically represents a payment hash.
func MakeHash ¶
MakeHash returns a new Hash from a byte slice. An error is returned if the number of bytes passed in is not HashSize.
func MakeHashFromStr ¶
MakeHashFromStr creates a Hash from a hex hash string.
type Preimage ¶
type Preimage [PreimageSize]byte
Preimage is used in several of the lightning messages and common structures. It represents a payment preimage.
func MakePreimage ¶
MakePreimage returns a new Preimage from a bytes slice. An error is returned if the number of bytes passed in is not PreimageSize.
func MakePreimageFromStr ¶
MakePreimageFromStr creates a Preimage from a hex preimage string.