-
Notifications
You must be signed in to change notification settings - Fork 205
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
added p2p private key in crypto components #4674
Conversation
…p2p-create-private-key Merge rc v1.4.0 refactor p2p create private key
Codecov ReportBase: 70.77% // Head: 70.71% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## rc/v1.4.0 #4674 +/- ##
=============================================
- Coverage 70.77% 70.71% -0.06%
=============================================
Files 640 640
Lines 84329 84390 +61
=============================================
Hits 59680 59680
- Misses 20176 20237 +61
Partials 4473 4473
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@@ -105,6 +119,7 @@ func NewCryptoComponentsFactory(args CryptoComponentsFactoryArgs) (*cryptoCompon | |||
importModeNoSigCheck: args.ImportModeNoSigCheck, | |||
enableEpochs: args.EnableEpochs, | |||
noKeyProvided: args.NoKeyProvided, | |||
p2pKeyPemFileName: args.P2pKeyPemFileName, |
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.
perhaps add a check for len(args.P2pKeyPemFileName) == 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.
the check was not added intentionally, so that if there is no file provided, a new key will be generated
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.
oh, right
@@ -82,15 +82,24 @@ func (mcc *managedCryptoComponents) CheckSubcomponents() error { | |||
if check.IfNil(mcc.cryptoComponents.publicKey) { | |||
return errors.ErrNilPublicKey | |||
} | |||
if check.IfNil(mcc.cryptoComponents.p2pPublicKey) { | |||
return errors.ErrNilPublicKey |
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.
should use different errors for p2pPublicKey and p2pPrivateKey
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.
done, added
go.mod
Outdated
@@ -5,9 +5,9 @@ go 1.15 | |||
require ( | |||
github.com/ElrondNetwork/elastic-indexer-go v1.3.0 | |||
github.com/ElrondNetwork/elrond-go-core v1.1.24 | |||
github.com/ElrondNetwork/elrond-go-crypto v1.2.1 | |||
github.com/ElrondNetwork/elrond-go-crypto v1.2.2-0.20221110121517-4e85e482f854 |
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.
don't forget proper releases
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.
yup, proper release :D
go.mod
Outdated
@@ -5,9 +5,9 @@ go 1.15 | |||
require ( | |||
github.com/ElrondNetwork/elastic-indexer-go v1.3.0 | |||
github.com/ElrondNetwork/elrond-go-core v1.1.24 | |||
github.com/ElrondNetwork/elrond-go-crypto v1.2.1 | |||
github.com/ElrondNetwork/elrond-go-crypto v1.2.2-0.20221110121517-4e85e482f854 |
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.
yup, proper release :D
go.mod
Outdated
github.com/ElrondNetwork/wasm-vm-v1_4 v1.4.63 | ||
github.com/ElrondNetwork/elastic-indexer-go v1.3.3 | ||
github.com/ElrondNetwork/elrond-go-core v1.1.26 | ||
github.com/ElrondNetwork/elrond-go-crypto v1.2.3-0.20221207130836-796c2dff9ad7 |
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.
do not forget about proper release here and on L10
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.
👍
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.
added proper release tags
Reasoning behind the pull request
Proposed changes
Testing procedure
Pre-requisites
Based on the Contributing Guidelines the PR author and the reviewers must check the following requirements are met:
feat
branch created?feat
branch merging, do all satellite projects have a proper tag insidego.mod
?