-
Notifications
You must be signed in to change notification settings - Fork 300
feat: implement isWalletAddress for mpc eddsa coins #7292
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
base: master
Are you sure you want to change the base?
Conversation
49214eb
to
d971ec0
Compare
d971ec0
to
e9982fe
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of nits/suggestions and comments, thanks for the changes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just a few nits
throw new InvalidAddressError(`invalid address: ${address}`); | ||
} | ||
|
||
if (!keychains || keychains.length === 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (!keychains || keychains.length === 0) { | |
if (!keychains?.length) { |
keychains: { | ||
commonKeychain: string; | ||
}[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you define a type for this instead of in-lining it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nvm; replaced with Keychains
* @throws {InvalidAddressError} if the address is invalid | ||
* @throws {Error} if required parameters are missing or invalid | ||
*/ | ||
export async function verifyEddsaTssWalletAddress( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have coin agnostic tests for this.
9513595
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed comments
9513595
to
a64baf3
Compare
Ticket: WP-6378