Description
In the Go implementation, RevocationList (in revocation_list.go) has helper methods:
Revoke(pubKey, timestamp) — add a revocation entry
ClearRevocation(pubKey) — remove a revocation entry
IsRevoked(pubKey, timestamp) — check if a key is revoked at a given time
MaybeCompact() — compact entries when a wildcard "*" revocation covers individual entries
The .NET library stores revocations as raw Dictionary<string, long> on NatsAccount.Revocations and NatsExport.Revocations with no helper methods.
Consider adding extension methods or a dedicated RevocationList type with these operations.
Reference
Go implementation: revocation_list.go
Description
In the Go implementation,
RevocationList(inrevocation_list.go) has helper methods:Revoke(pubKey, timestamp)— add a revocation entryClearRevocation(pubKey)— remove a revocation entryIsRevoked(pubKey, timestamp)— check if a key is revoked at a given timeMaybeCompact()— compact entries when a wildcard"*"revocation covers individual entriesThe .NET library stores revocations as raw
Dictionary<string, long>onNatsAccount.RevocationsandNatsExport.Revocationswith no helper methods.Consider adding extension methods or a dedicated
RevocationListtype with these operations.Reference
Go implementation:
revocation_list.go