Package-level declarations
Types
A joiner's answer to a Challenge: "I hold this key, and I am asking to join this room, from this host, right now." The joiner signs it with its own DeviceKey, so a host that checks it with isSignedBy knows the device asking is the device that holds that key.
A host's answer to a device asking to join: "prove you hold your key, and here is proof that I hold mine." The host signs it, so the joiner learns the host's key from the host itself, and the fresh hostNonce it carries is what the joiner's AdmissionProof must sign over.
The public name of one device's key: a short string another device can store, compare, and check a signature against. Two devices holding the same name are talking about the same key.
Where a Grant is good: in one room, or in any room its issuer hosts.
Decides whether a presented Grant lets a device back into this host's room now.
What a host makes of a Grant a device presents: good here and now, or the first reason it is not.
Marks the statements only kuilt's own session protocol needs, and nothing else. It carries no stability promise for consumers.
A DeviceKeyStore that keeps everything in memory, and forgets everything with the process.
How one device makes keys, reads a key named from outside, and checks a signature. A room uses one scheme for everything it signs and checks, and takes it from its DeviceKeyStore.keyScheme.
A host's record of the devices it no longer lets back in on an old pass.
Functions
Throws unless value can be signed as a string field of a statement such as a Challenge or an AdmissionProof: well-formed UTF-16, with no unpaired surrogate, whose UTF-8 fits one layout field (65 535 bytes). name says which value, in the message.