Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWrongNumberOfStates = errors.New("incorrect state count")
ErrWrongNumberOfStates may be returned if a function takes a slice of states and got the wrong number. This probably will only occur deserializing network data.
Functions ¶
func GenerateNonce ¶
GenerateNonce creats a 24 byte nonce from the source of randomness rand
func KeyToByteArray ¶
KeyToByteArray converts a key to the [32]bytes required by nacl.secretbox
Types ¶
type SetMessage ¶
A SetMessage is the Go representation of the JSON message sent to set states
Click to show internal directories.
Click to hide internal directories.