Documentation
¶
Overview ¶
Package invite is the invite codes of the closed slice (R04, R34): how a code is made, how one given back is read, and the SHA-256 that is all the database keeps of it.
A code is 16 symbols of Crockford's base32, 80 bits from crypto/rand, written in four groups of four: 0123-4567-89AB-CDEF. It is read as Crockford reads it, so that what a person types or pastes back is taken: case, dashes and white space — a line's end, a space of no break — do not count, O is read as 0, and I and L as 1. The hash is of the code so read, so that every way of writing it has one.
Index ¶
Constants ¶
const (
// ClosedSlice is the tariff of the closed slice, a code's by default.
ClosedSlice = "closed_slice"
)
The tariffs a code is made with (R11; architecture 3.6). A code's tariff passes to the account that redeems it. Their caps come with the quota (Д11).
const (
// Symbols is how many symbols of the alphabet a code has.
Symbols = 16
)
The shape of a code.
Variables ¶
var Tariffs = []string{ClosedSlice}
Tariffs is every tariff a code may be made with.