Documentation ¶
Index ¶
Constants ¶
View Source
const NonceLength = 17
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Nonce ¶
type Nonce []byte
func Generate ¶
func Generate() Nonce
Generate generates a nonce in this format:
01000001876bd0a2c0e571093967fce3d7 01 # version 000001876d008cc5 # UNIX time (ms) r1r2r3r4r5r6r7r8 # random bytes
func (Nonce) WrapPayload ¶
func (n Nonce) WrapPayload(payload []byte) NoncedPayload
type NoncedPayload ¶
type NoncedPayload []byte
Click to show internal directories.
Click to hide internal directories.