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

Add MultiEd25519 account support #627

Merged
merged 6 commits into from
Feb 10, 2025
Merged

Add MultiEd25519 account support #627

merged 6 commits into from
Feb 10, 2025

Conversation

heliuchuan
Copy link
Contributor

@heliuchuan heliuchuan commented Feb 6, 2025

Test Plan

Added unit and e2e tests

Related Links

Checklist

  • Have you ran pnpm fmt?
  • Have you updated the CHANGELOG.md?

@heliuchuan heliuchuan marked this pull request as ready for review February 6, 2025 13:29
@heliuchuan heliuchuan requested a review from a team as a code owner February 6, 2025 13:29
Copy link
Contributor

@hardsetting hardsetting left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@@ -23,6 +23,79 @@ function bitCount(byte: number) {
}
/* eslint-enable no-bitwise */

export abstract class AbstractMultiKey extends AccountPublicKey {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

* @group Implementation
* @category Account (On-Chain Model)
*/
readonly signers: Ed25519PrivateKey[];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering, why "signers" as opposed to "privateKeys"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its better to describe functionality. In theory I might want to change the type to something that signs rather than privateKey.

tests/unit/account.test.ts Outdated Show resolved Hide resolved
@heliuchuan heliuchuan merged commit e8f771a into main Feb 10, 2025
8 checks passed
@heliuchuan heliuchuan deleted the multied branch February 10, 2025 22:15
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.

2 participants