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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
clients
python
DuniterPy
Commits
dec3b867
Commit
dec3b867
authored
6 years ago
by
Vincent Texier
Browse files
Options
Downloads
Patches
Plain Diff
[enh] Use static method to load private key file
parent
08077e86
No related branches found
No related tags found
No related merge requests found
Pipeline
#4374
passed
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
+18
-20
18 additions, 20 deletions
duniterpy/key/signing_key.py
with
18 additions
and
20 deletions
duniterpy/key/signing_key.py
+
18
−
20
View file @
dec3b867
...
...
@@ -68,7 +68,6 @@ class SigningKey(libnacl.sign.Signer):
return
cls
(
seed
)
def
save_private_key
(
self
,
path
:
str
)
->
None
:
"""
Save authentication file
...
...
@@ -77,7 +76,7 @@ class SigningKey(libnacl.sign.Signer):
"""
self
.
save
(
path
)
@staticmethod
def
from_private_key
(
path
:
str
)
->
SigningKeyType
:
"""
Read authentication file
...
...
@@ -89,7 +88,6 @@ class SigningKey(libnacl.sign.Signer):
key
.
pubkey
=
Base58Encoder
.
encode
(
key
.
vk
)
return
key
def
decrypt_seal
(
self
,
message
:
bytes
)
->
str
:
"""
Decrypt message with a curve25519 version of the ed25519 key pair
...
...
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