The global format context, built on first call as the reference's
LazyFormatContext::get builds it: dcbor's global tags store receives
the standard tags, every Blockchain Commons tag name and the components
summarisers (bc_components::register_tags()), then the context takes a
snapshot of that store, of the global known-values registry and of the
global functions and parameters stores (FormatContext::new clones its
arguments). A tag or known value registered globally afterwards is not
seen by the context.
The envelope summarisers (known values as 'name', functions as «…»,
parameters as ❰…❱, requests, responses and events) are NOT installed
here: call registerTags first, as the reference calls
bc_envelope::register_tags(). Until then a leaf holding 40000(1)
formats as 40000(1).
One context per process: the ESM and CommonJS builds share it.
The global format context, built on first call as the reference's
LazyFormatContext::getbuilds it: dcbor's global tags store receives the standard tags, every Blockchain Commons tag name and the components summarisers (bc_components::register_tags()), then the context takes a snapshot of that store, of the global known-values registry and of the global functions and parameters stores (FormatContext::newclones its arguments). A tag or known value registered globally afterwards is not seen by the context.The envelope summarisers (known values as
'name', functions as«…», parameters as❰…❱, requests, responses and events) are NOT installed here: call registerTags first, as the reference callsbc_envelope::register_tags(). Until then a leaf holding40000(1)formats as40000(1).One context per process: the ESM and CommonJS builds share it.