Skip to main content

Module code

Module code 

Source
Expand description

The transfer code, <nameplate>-<word>-<word>-<word>. The nameplate picks the meeting room and is public; the words are the secret the two devices prove to each other.

Structs§

Code
A transfer code. Debug never prints the words.

Constants§

NAMEPLATE_MAX
Nameplates run 1..=NAMEPLATE_MAX. Short to type, and only codes in use at once can meet.
QR_PREFIX
What the QR carries ahead of the code. Plain text, not a link: no camera app or link handler can open it, and someone scanning it elsewhere reads a code they can type.
WORDS
Secret words per code: 11 bits each from the BIP-39 English list.