Documentation ¶
Index ¶
Constants ¶
View Source
const HashSize = 32
HashSize of array used to store hashes.
View Source
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.
var ZeroHash Hash
ZeroHash is a predefined hash containing all zeroes.
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.
Click to show internal directories.
Click to hide internal directories.