-
Notifications
You must be signed in to change notification settings - Fork 180
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
Add support for Substrate Network on Key load #87
Conversation
This reverts commit 461cf42.
Codecov Report
@@ Coverage Diff @@
## master #87 +/- ##
==========================================
- Coverage 60.53% 60.50% -0.03%
==========================================
Files 88 88
Lines 3613 3618 +5
==========================================
+ Hits 2187 2189 +2
- Misses 1072 1074 +2
- Partials 354 355 +1
Continue to review full report at Codecov.
|
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.
Nice, thanks 👍
signature/signature.go
Outdated
@@ -165,12 +173,13 @@ func Verify(data []byte, sig []byte, privateKeyURI string) (bool, error) { | |||
// LoadKeyringPairFromEnv looks up whether the env variable TEST_PRIV_KEY is set and is not empty and tries to use its | |||
// content as a private phrase, seed or URI to derive a key ring pair. Panics if the private phrase, seed or URI is | |||
// not valid or the keyring pair cannot be derived | |||
func LoadKeyringPairFromEnv() (kp KeyringPair, ok bool) { | |||
// Can take a Network property, leave empty for default | |||
func LoadKeyringPairFromEnv(network string) (kp KeyringPair, ok bool) { |
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.
What about loading the network also from an env variable 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.
Yep, I can do that
No description provided.