Skip to content

Handle keyset rotations #673

@gudnuf

Description

@gudnuf

If we have a pending mint operation in our database (like a cashu-send-swap) that specifies a keyset ID and the mint rotates active keysets, then we will never be able to complete that operation. It is okay for inputs to a mint operation to be from an inactive keyset, but if we are creating outputs they must be from an active keyset.

I have only noticed inactive keyset errors when the mint rotates keys in between a mint operation being drafted and being completed. Our wallet seems to handle keyset rotations well otherwise.

P.S. We should also prefer to use proofs from inactive keysets (see cashubtc/cashu-ts#370)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium prioritybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions