Skip to content

Commit dc0f25f

Browse files
Add better Policy
Move the Policy struct into a sigsum::policy and flesh it out so that it support the full quorum logic. This comes with a PolicyBuilder as well to build policies programatically.
1 parent 5ecffa2 commit dc0f25f

8 files changed

Lines changed: 465 additions & 0 deletions

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ A Rust library for using Sigsum transparency logs.
1717
base64ct = { version = "1.8.0", features = ["alloc"] }
1818
ed25519-dalek = "2.2.0"
1919
sha2 = "0.10.8"
20+
thiserror = "2.0.17"
2021

2122
[dev-dependencies]
2223
hex-literal = "1.0.0"
24+
insta = "1.44.3"
2325
lazy_static = "1.5.0"
2426
serde = { version = "1.0.190", features = ["derive"] }
2527
serde_json = "1.0.107"

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ mod io {
5959
mod crypto;
6060
mod log;
6161
mod merkle;
62+
pub mod policy;
6263
mod sigsumsig;
6364
mod verify;
6465

0 commit comments

Comments
 (0)