Expand description
The registry protocol’s data (packaging slice 4a, #2274, decision D), as
bynk uses it: the pure data and payloads live in bynk-registry-core
(first-party registry R2, #2336, decision B), shared with the hosted
registry’s wasm module; this module adds ed25519 signing and verification
over ring (already in the build through rustls), and ConfigTrust, the
signer walks with ring as their verifier.
Structs§
- Config
- A registry’s
config.json. - Index
Line - One version line of a package’s index file.
- KeyEntry
- One link of the key-rotation chain: a key, and (after the first) the
previous key’s signature over
{ "key": …, "registry": id }. - Requirement
- A dependency or npm requirement in an index line.
- Signers
- #2316: who may sign a registry’s index lines.
- Signing
Key - A registry’s signing key, from its PKCS#8 document.
Constants§
- PROTOCOL
- The protocol version a registry without delegation speaks.
- PROTOCOL_
DELEGATION - #2316 (D): the protocol version a
config.jsonwithdelegationsorrevokedmust declare; this toolchain reads both. - WITHDRAWN_
MAX - #2330 (A): the longest
withdrawnreason, in characters.
Traits§
- Config
Trust - The signer walks of
Config, verifying withring.
Functions§
- canonical
valueas canonical JSON: object keys in byte-wise order (serde_json’s map is ordered unlesspreserve_orderis on, so keys are re-sorted here regardless), no insignificant whitespace.- delegation_
payload - #2316: the payload a delegation’s signature covers.
- fingerprint
ed25519-fp:<base64 of sha256(public key)>.- key_
bytes - The raw public key of
ed25519:<base64>. - revocation_
payload - #2316: the payload a revocation’s signature covers.
- rotation_
payload - The payload a rotation link’s signature covers.
- verify
- Whether
sig(base64) iskey’s signature overpayload.