| Crates.io | flcrypto |
| lib.rs | flcrypto |
| version | 0.9.2 |
| created_at | 2025-02-25 11:54:52.818821+00 |
| updated_at | 2025-05-11 18:16:45.265096+00 |
| description | Cryptographic package for different algorithms |
| homepage | https://fledg.re |
| repository | https://github.com/ineiti/fledger |
| max_upload_size | |
| id | 1569066 |
| size | 114,281 |
This crypto wrapper defines the following main structures:
Signer - a generic structure to sign messagesVerifier - a generic structure to verify signed messagesCondition - an AND/OR/NofT combination of verifiers, badges, and conditionsBadge - a trait with an ID, a Condition, and a version.An example use-case is the following:
Signer, and a Badge with a Condition
pointing to the Verifier of that Signer. This allows the node to do key rotation by updating
its BadgeBadges.
A CLI tool to update the page also acts as a node.WebPageT: Badge with an OR of all nodes and CLIs BadgesWebPageAR: ACE with rules like update_object, add_object, rm_object,
pointing to the WebPageTWebPageAR, allowing them to:
WebPageT if nodes join or go awayWebPageAR if part of the rules should apply to other Badges. An example
could be a rule to update the TTL of an object, which could be allowed by more nodes
than the rule to modify an objectCurrently there is an implementation for:
Ed25519 for good old EDDSA signaturesMlDSA for different sizes of FIPS 204 compatible signatures