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

Add support for Substrate Network on Key load #87

Merged
merged 10 commits into from
Jul 17, 2020

Conversation

mikiquantum
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #87 into master will decrease coverage by 0.02%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
signature/signature.go 61.76% <75.00%> (-1.73%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c55974...c93a645. Read the comment docs.

Copy link
Contributor

@philipstanislaus philipstanislaus left a comment

Choose a reason for hiding this comment

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

Nice, thanks 👍

@@ -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) {
Copy link
Contributor

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?

Copy link
Contributor Author

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

@mikiquantum mikiquantum merged commit 40b1b01 into centrifuge:master Jul 17, 2020
@mikiquantum mikiquantum deleted the acc/network branch July 17, 2020 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants