Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[crypto] Refactor AuthenticationKey #2

Closed
wants to merge 1 commit into from

Conversation

GhostWalker562
Copy link
Collaborator

Description

Removed the following concepts:

  • Unified keys and signatures
  • Account public keys
  • AnyPublicKey and AnySignature

All PublicKeys are not separated by UnifiedPublicKey or LegacyPublicKey but are now considered a "PublicKey". It is the responsibility of the AccountAuthenticator to runtime check whether they support the key.

For example, SingleKeyAccount can only support a "signing key" (Keyless, Ed25519, Secp256k1) and not a unified PublicKey (MultiKey). It will check this condition in the constructor.

Serialization of AnyPublicKey and AnySignature is the responsibility of the Accounts instead of the PublicKeys.

Authentication keys are moved to the account versus the public key. This prevents confusion when users derive two different accounts with one private key (SingleKey account vs Ed25519 account).

Test Plan

  • Added additional examples
  • CI Passes

Related Links

N/A

@GhostWalker562 GhostWalker562 self-assigned this Sep 17, 2024
@GhostWalker562 GhostWalker562 force-pushed the main branch 5 times, most recently from 0662c8d to 6070e8b Compare September 17, 2024 20:03
@GhostWalker562 GhostWalker562 deleted the philip/refactor-auth-key branch September 20, 2024 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant