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

[feature] #2121: Check keypair is valid when constructed #2130

Merged
merged 2 commits into from Apr 25, 2022

Conversation

mversic
Copy link
Contributor

@mversic mversic commented Apr 21, 2022

Signed-off-by: Marin Veršić marin.versic101@gmail.com

Description of the Change

I thought it might be useful to fail fast on invalid configuration. Should save us some debugging time. The gist of the change is in the KeyPair::new method
Closes #2121

Issue

Benefits

Possible Drawbacks

Usage Examples or Tests [optional]

Alternate Designs [optional]

@mversic mversic added the iroha2-dev The re-implementation of a BFT hyperledger in RUST label Apr 21, 2022
appetrosyan
appetrosyan previously approved these changes Apr 21, 2022
Copy link
Contributor

@appetrosyan appetrosyan left a comment

Choose a reason for hiding this comment

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

LGTM

crypto/src/lib.rs Show resolved Hide resolved
crypto/src/lib.rs Outdated Show resolved Hide resolved
client/src/client.rs Show resolved Hide resolved
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
@mversic mversic merged commit df1f6a6 into hyperledger:iroha2-dev Apr 25, 2022
@mversic mversic deleted the keypair_check branch April 25, 2022 12:37
mversic added a commit to mversic/iroha that referenced this pull request May 2, 2022
…yperledger#2130)

Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
appetrosyan pushed a commit to appetrosyan/iroha that referenced this pull request May 12, 2022
…yperledger#2130)

Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
mversic added a commit to mversic/iroha that referenced this pull request May 13, 2022
…yperledger#2130)

Signed-off-by: Marin Veršić <marin.versic101@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iroha2-dev The re-implementation of a BFT hyperledger in RUST
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants