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 NewHash ¶
NewHash returns a new Hash from a byte slice. An error is returned if the number of bytes passed in is not HashSize.
func NewHashFromStr ¶
NewHashFromStr 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 NewPreimage ¶
NewPreimage returns a new Preimage from a byte slice. An error is returned if the number of bytes passed in is not PreimageSize.
func NewPreimageFromStr ¶
NewPreimageFromStr creates a Preimage from a hex preimage string.