Skip to content

Add RevocationList helper methods #53

@mtmk

Description

@mtmk

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions