-
Notifications
You must be signed in to change notification settings - Fork 500
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exp/services/recoverysigner: add support for configuring and using mu…
…ltiple signing keys (#2627) ### What Add support for configuring and using multiple signing keys where the first signing key in the list is the default used for signing and the others can be selected according to SEP-30 v0.3.0. ### Why The reference implementation adheres to the API changes defined in SEP-30 v0.3.0 that supported multiple signing keys per registered account for the purpose of rotating signing keys, however the reference implementation does not actually support multiple signing keys being configured at one time. ### Note Much of this code is possibly going to be rewritten for #2343 where global keys will be supplemented with unique keys for each account that get stored in the database. ### Known limitations There is some code duplicity in this PR that I don't think is worth optimizing on until unique keys are implemented as trying to abstract commonalities may make @howardtw's job harder if the abstraction doesn't quite align with the logic he inserts. I think we should revisit any duplicate code once the unique key logic is added.
- Loading branch information
1 parent
bd8a616
commit 000a7c5
Showing
15 changed files
with
711 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.