Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
DuniterPy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
ce88ac46
Commit
ce88ac46
authored
6 years ago
by
Moul
Browse files
Options
Downloads
Patches
Plain Diff
[fix] missing else condition
parent
5a287fe9
Branches
check_uniq_node_by_endpoints
No related tags found
1 merge request
!52
#51: (E)WIF: add four methods: devine format, allow passing to the f() an hexadecimal string
Pipeline
#4383
failed
6 years ago
Stage: github-sync
Stage: build
Stage: test
Stage: release
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
duniterpy/key/signing_key.py
+3
-0
3 additions, 0 deletions
duniterpy/key/signing_key.py
with
3 additions
and
0 deletions
duniterpy/key/signing_key.py
+
3
−
0
View file @
ce88ac46
...
@@ -188,6 +188,9 @@ sec: {signkey}""".format(version=version, pubkey=base58_public_key, signkey=base
...
@@ -188,6 +188,9 @@ sec: {signkey}""".format(version=version, pubkey=base58_public_key, signkey=base
return
SigningKey
.
from_wif_hex
(
wif_hex
)
return
SigningKey
.
from_wif_hex
(
wif_hex
)
elif
fi
==
b
"
\x02
"
:
elif
fi
==
b
"
\x02
"
:
return
SigningKey
.
from_ewif_hex
(
wif_hex
,
password
)
return
SigningKey
.
from_ewif_hex
(
wif_hex
,
password
)
else
:
raise
Exception
(
"
Error: Bad format: not WIF nor EWIF
"
)
def
from_wif_file
(
path
:
str
)
->
SigningKeyType
:
def
from_wif_file
(
path
:
str
)
->
SigningKeyType
:
"""
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment