Skip to main content

Module boot_payload

Module boot_payload 

Source
Expand description

The init_finished payload with every field left out that matches its template.

Most of a boot’s profiles are bare npubs, so their fields are nearly all empty, and every cached image path repeats the cache directory. The page rebuilds each object from its template in one place (expandBootPayload in js/auth.js) before anything reads it.

A template holds only keys every item carries, so a key an item omits stays omitted, and restoring a template value gives back exactly the value that was left out.

Structs§

BootPayload

Functions§

boot_payload