Skip to main content

Module keydoc

Module keydoc 

Source
Expand description

Key documents (SPEC 9.2) for the mesh’s own host, rotation (SPEC 9.5), and since 0.2.1 their declarations (spec-0.4.3).

Enums§

DeclareError
Why declare_at refused a declaration.
Declared
What with_declaration did to the key document.

Functions§

declare_at
As with_declaration, for the store’s key document of host (since CONTRACT-1.8b H1): the declaration is written with put_namespace at the clock’s now. Rule A: an explicit valid_from or valid_to earlier than the clock’s now is refused, with nothing written; with no valid_from it is now. The document is read from store, which must hold one.
with_declaration
The key document existing of host with a declaration (SPEC 9.2, spec-0.4.3): fn_name (a full function name under host) may be computed over inputs under the restricted licence from valid_from (an instant) until valid_to (absent: open-ended), the result carrying that licence (SPEC 8.5). Since 0.2.1.
with_key
The key document of host publishing key from valid_from, after the keys of existing (a document already published for host, if any): rotation as SPEC 9.5 says, each existing key without a valid_to (or with a later one) ending at valid_from. A key already in existing is not added again. The result is canonical JSON, checked by 9.2.
with_registered
The key document existing of host with the key public registered from valid_from (QUESTIONS-build2 D39): the key is added beside the keys there are, and no key is rotated or closed. None when the document holds that key already (then nothing is to be written). The declarations are kept. Checked by 9.2.