Skip to content

reissue_certificate does not index the new certificate and leaves the old one active #802

Description

@feyishola

issue_certificate records new certs in IssuerCertIds/OwnerCertIds, but reissue_certificate (lib.rs:400-476) only stores the certificate and emits an event — it never calls append_cert_id. Reissued certificates are therefore invisible to get_certificates_by_issuer / get_certificates_by_owner. The parent (old_id) is also left Active, so both parent and child are simultaneously valid despite "reissue/supersede" semantics. Fix: append the new id to both indexes and mark the original Revoked/Superseded (emitting a revocation event).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbugSomething isn't workingcontract

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions