Expand description
Signatures on vocabularies: kute keygen, kute sign, kute verify.
A signature says that the holder of a key vouches for a vocabulary’s content. It is Ed25519 over a fixed prefix and the vocabulary’s digest, kept in the file beside the digest and outside what the digest covers, so signing changes neither the digest nor anything that refers to the vocabulary by it.
Verifying needs the signer’s public key from somewhere the file is not: a signature in a file proves nothing to someone who takes the key from the same file. There is no registry and no chain of keys here; whoever verifies says which keys they trust.
Constants§
- ALGORITHM
- MAX_
SIGNATURES - Most signatures one vocabulary may carry.
Functions§
- gate
- A test for
kute peer serve --require-signature-from: passes a vocabulary that carries a valid signature from one oftrusted. - key_id
- A key is named by the hash of its public half.
- keygen
- Make a key and write its private half to
output, which must not exist. - sign
- Add this key’s signature to the vocabulary and write it to
output. - verify
- Check the vocabulary’s signatures against the keys the caller trusts. Returns the report and whether at least one trusted key’s signature holds.