Skip to content

Payjoin directory should persist OHTTP keys #614

@spacebear21

Description

@spacebear21

Currently it generates new keys on startup, which means anytime the directory server is restarted it produces new OHTTP keys, and any existing payjoin sessions using that directory fail due to " Bad request: Key configuration rejected".

The directory should check if a "ohttp_keys" file exists, and use the existing key configuration if it exists, or generate a new one and save to file otherwise.

Relates to #471

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions