-
Notifications
You must be signed in to change notification settings - Fork 40
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
Implemented the Base Key Types #18
Conversation
PrivateKey, PublicKey, and Mnemonic types. Removed the BIP32 functions from the KeyService and converted to extension methods of the key types.
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.
Looking good. I'd appreciate an effort to create a collection of test vectors for these classes.
@@ -125,11 +121,10 @@ public void VerifyRewardAddress(string mnemonic, string stakingAddr) | |||
/// <param name="path"></param> | |||
/// <param name="rootKey"></param> | |||
/// <returns></returns> | |||
private (byte[], byte[]) getKeyPairFromPath(string path, (byte[], byte[]) rootKey) | |||
private (PrivateKey, PublicKey) getKeyPairFromPath(string path, PrivateKey rootKey) |
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.
Return KeyPair here (ie your suggested type in #5 )
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.
yeah I wrote this and thought about the Key (better name: KeyPair) type. Alright I get this added.
Awesome, yeah I'll add tests next. |
Alright... I think I hit a bit of a wall.
ultimately, I want to watch on #17 before merging this PR since the types added here would be impacted by |
PrivateKey, PublicKey, and Mnemonic types. Removed the BIP32 functions from the KeyService and converted to extension methods of the key types.
Issue #5