Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateChannelKeypair ¶
func GenerateChannelKeypair(rootAccountKP *keypair.Full, channelIndex int, salt string) (*keypair.Full, error)
GenerateChannelKeypair deterministically generates a keypair using the root account keypair, channel index, and configured channel salt.
func GenerateToken ¶
GenerateToken generates a random token for acquiring a channel lock.
Types ¶
type Pool ¶
type Pool interface { // GetChannel returns a full keypair available for use as a channel. The pool does not ensure that the account is // created or funded, therefore callers of this function must handle that logic. // // Callers are expected to call Unlock on the channel lock once finished using it. GetChannel() (channel *Channel, err error) }
Click to show internal directories.
Click to hide internal directories.