-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[fastx] Replace KeyPair With Signer & Load Keys From File #590
Conversation
9c1a473
to
274b91c
Compare
a848f80
to
be46f49
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.
Not going to be in this PR, but I think we should make the key store module more contained (only the wallet should be using it, so we may want to eventually make the key store and everything related a submodule of the wallet).
sui_types/src/base_types.rs
Outdated
@@ -87,6 +87,14 @@ impl From<ObjectID> for SuiAddress { | |||
} | |||
} | |||
|
|||
impl From<Vec<u8>> for SuiAddress { |
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.
Converting from Vec to SuiAddress may not always succeed. So we may only want a TryFrom instead of From
The keystore can be used by the authorities in the future as well, the keystore trait can be extended to support HSM and other signing method, so it's not limited to the wallet |
sui_types/src/base_types.rs
Outdated
@@ -87,6 +87,14 @@ impl From<ObjectID> for SuiAddress { | |||
} | |||
} | |||
|
|||
impl From<Vec<u8>> for SuiAddress { | |||
fn from(address: Vec<u8>) -> SuiAddress { |
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.
nit: Should we check the size of address here?
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.
Using TryFrom instead
This PR needs a thumbs up if it looks ok..... thanks :) |
* add endpoint to publish multiaddr of nw primary * Fix broken test * use cluster in configuration tests * change addr to address * pass name instead of address to grpc server
* add endpoint to publish multiaddr of nw primary * Fix broken test * use cluster in configuration tests * change addr to address * pass name instead of address to grpc server
wallet.conf
keystore.rs
to store keys inwallet.key
KeystoreSigner
instead of Box<Pin>Not Implemented/ todos:
KeystoreSigner
in Authorities