Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Refactor Web5/Crypto structure #24

Merged
merged 11 commits into from
Jan 25, 2024
Merged

Refactor Web5/Crypto structure #24

merged 11 commits into from
Jan 25, 2024

Conversation

amika-sq
Copy link
Contributor

Instead of needing to specify an algorithm/curve when creating keys & DIDs, there is now a singular CryptoAlgorithm enum that is used.

Each of the CryptoAlgorithm cases represent a unique combination of algorithm & curve, which can then be applied internally.

This drastically simplifies the public API, removing the need for consumers to need to understand which algorithms are compatible with what curves. Instead, they can just pick one and go!

@amika-sq amika-sq enabled auto-merge (squash) January 25, 2024 17:46
@amika-sq amika-sq merged commit 9d73b9f into main Jan 25, 2024
1 check passed
@amika-sq amika-sq deleted the crypto-refactor-2 branch January 25, 2024 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant