553f13b265
The key that signs Domi licences and revocation lists (Fundamentum docs/LICENCE.md, licence v1): Ed25519 under the reserved id domi-licence, no scope, refused by every other signing path, signing plain Ed25519 over the exact payload. The payload is parsed first, as the spec's strict parser does (section 2.4 steps 1-4 and 7, section 4.1), and a malformed one is refused with the spec's code and no card. The licence grant (Mark's click) signs a licence from licence-issue whose apps are on the allowlist, within 50 a day, without a card; anything else that is well formed asks on a card, a revocation list always. Refused outright: a licence dated more than a day from this clock, a licence id signed before (replay), a seq not above the highest signed (rollback), any other caller. The grant and the log live in signing.licence, which older cores ignore; the key is an ordinary Ed25519 entry every core reads. Not compiled or tested yet: the PC is over Mark's 90 % rule.
32 lines
801 B
TOML
32 lines
801 B
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/*"]
|
|
|
|
[workspace.package]
|
|
version = "0.21.0"
|
|
edition = "2024"
|
|
license = "CPAL-1.0"
|
|
repository = "https://gitea.marek-novak.cz/mnovak/CustosPublic"
|
|
|
|
[workspace.dependencies]
|
|
argon2 = { version = "0.6", default-features = false, features = ["alloc", "zeroize"] }
|
|
chacha20poly1305 = "0.11"
|
|
zeroize = { version = "1.9", features = ["derive"] }
|
|
rand = "0.10"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
unicode-normalization = "0.1"
|
|
hmac = "0.13"
|
|
sha1 = "0.11"
|
|
sha2 = "0.11"
|
|
hkdf = "0.13"
|
|
data-encoding = "2"
|
|
percent-encoding = "2"
|
|
|
|
# RSA-3072 key generation (custos-sign) takes minutes unoptimised; these keep `cargo test` usable.
|
|
[profile.dev.package.num-bigint-dig]
|
|
opt-level = 3
|
|
[profile.dev.package.rsa]
|
|
opt-level = 3
|