Skip to main content

Module display

Module display 

Source
Expand description

How a value is written out for a person: the encodings reveal shows, and the shape each gives a sheet of paper.

The shape is a property of the encoding and not of the value, so rite script prints it before the ceremony runs: how many characters make a row, how many of those are parity, how characters group for the eye, what the alphabet is and what the encoding is called. Only the number of rows depends on the value, and a sheet does not need it when every row has the same shape.

bip39 is words rather than characters: one word per row, numbered as a wallet asks for them, so the rows are the length.

Structs§

Layout
The shape a written value takes: what a sheet pre-prints and how a screen lays the characters out.
Row
One row of a written value.
TypedRow
A row RevealFormat::read_row read.
TypedValue
A value RevealFormat::decode read.
UnknownRevealFormat
A format: value that names no encoding this build shows.

Enums§

RevealFormat
An encoding a value is shown in.

Functions§

hex_upper
Bytes as upper-case hex.