feat(kt): add key revocation and Merkle-log audit support
Add RevocationLog with domain-separated leaf hashes (0x02 prefix) for tracking revoked identity keys alongside the KT MerkleLog. Includes: - RevocationLog with O(1) lookup, serialization, and double-revoke guard - MerkleLog.append_raw() for pre-computed hashes - MerkleLog.audit_log(start, end) for paginated log retrieval - RevokeKey (510), CheckRevocation (511), AuditKeyTransparency (520) RPCs - Server domain logic + v2 handlers + FileBackedStore/SqlStore persistence - 4 new revocation tests + all 21 KT tests + 65 server tests passing
This commit is contained in:
@@ -10,4 +10,7 @@ pub enum KtError {
|
||||
|
||||
#[error("serialisation error: {0}")]
|
||||
Serialisation(String),
|
||||
|
||||
#[error("identity key is already revoked")]
|
||||
AlreadyRevoked,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user