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
Merge requests
!42
Update save_private_keys.py
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Update save_private_keys.py
zicmama:patch-3
into
master
Overview
7
Commits
1
Pipelines
0
Changes
1
Closed
inso
requested to merge
zicmama:patch-3
into
master
7 years ago
Overview
7
Commits
1
Pipelines
0
Changes
1
Expand
Created by: zicmama
ScryptParams required positional argument BUG
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3b142451
1 commit,
7 years ago
1 file
+
2
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
examples/save_private_keys.py
+
2
−
2
Options
from
duniterpy.key
import
SigningKey
from
duniterpy.key
import
SigningKey
,
ScryptParams
import
getpass
import
os
@@ -30,7 +30,7 @@ password = getpass.getpass("Enter your password: ")
pubkey
=
input
(
"
Enter your public key:
"
)
# init signer instance
signer
=
SigningKey
(
salt
,
password
)
\
signer
=
SigningKey
(
salt
,
password
,
ScryptParams
(
4096
,
16
,
1
)
)
\
# check public key
if
signer
.
pubkey
!=
pubkey
:
Loading