Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
beem
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
hive
beem
Commits
cba84249
Commit
cba84249
authored
7 years ago
by
Holger Nahrstaedt
Browse files
Options
Downloads
Patches
Plain Diff
Prepare next version 0.9.10
parent
427d1e55
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
README.rst
+4
-0
4 additions, 0 deletions
README.rst
beem/wallet.py
+6
-3
6 additions, 3 deletions
beem/wallet.py
beem/witness.py
+4
-2
4 additions, 2 deletions
beem/witness.py
beembase/operations.py
+4
-4
4 additions, 4 deletions
beembase/operations.py
tox.ini
+2
-1
2 additions, 1 deletion
tox.ini
with
20 additions
and
10 deletions
README.rst
+
4
−
0
View file @
cba84249
...
@@ -117,6 +117,10 @@ Documentation is available at http://beem.readthedocs.io/en/latest/
...
@@ -117,6 +117,10 @@ Documentation is available at http://beem.readthedocs.io/en/latest/
Changelog
Changelog
=========
=========
0.19.10
-------
* Memo encryption/decryption fixed
0.19.9
0.19.9
------
------
* CLI tool improved
* CLI tool improved
...
...
This diff is collapsed.
Click to expand it.
beem/wallet.py
+
6
−
3
View file @
cba84249
...
@@ -200,7 +200,8 @@ class Wallet(object):
...
@@ -200,7 +200,8 @@ class Wallet(object):
def
changePassphrase
(
self
,
new_pwd
):
def
changePassphrase
(
self
,
new_pwd
):
"""
Change the passphrase for the wallet database
"""
Change the passphrase for the wallet database
"""
"""
assert
not
self
.
locked
()
if
self
.
locked
():
raise
AssertionError
()
self
.
masterpwd
.
changePassword
(
new_pwd
)
self
.
masterpwd
.
changePassword
(
new_pwd
)
def
created
(
self
):
def
created
(
self
):
...
@@ -247,7 +248,8 @@ class Wallet(object):
...
@@ -247,7 +248,8 @@ class Wallet(object):
def
encrypt_wif
(
self
,
wif
):
def
encrypt_wif
(
self
,
wif
):
"""
Encrypt a wif key
"""
Encrypt a wif key
"""
"""
assert
not
self
.
locked
()
if
self
.
locked
():
raise
AssertionError
()
return
format
(
return
format
(
bip38
.
encrypt
(
PrivateKey
(
wif
,
prefix
=
self
.
prefix
),
self
.
masterpassword
),
"
encwif
"
)
bip38
.
encrypt
(
PrivateKey
(
wif
,
prefix
=
self
.
prefix
),
self
.
masterpassword
),
"
encwif
"
)
...
@@ -260,7 +262,8 @@ class Wallet(object):
...
@@ -260,7 +262,8 @@ class Wallet(object):
return
encwif
return
encwif
except
:
except
:
pass
pass
assert
not
self
.
locked
()
if
self
.
locked
():
raise
AssertionError
()
return
format
(
bip38
.
decrypt
(
encwif
,
self
.
masterpassword
),
"
wif
"
)
return
format
(
bip38
.
decrypt
(
encwif
,
self
.
masterpassword
),
"
wif
"
)
def
addPrivateKey
(
self
,
wif
):
def
addPrivateKey
(
self
,
wif
):
...
...
This diff is collapsed.
Click to expand it.
beem/witness.py
+
4
−
2
View file @
cba84249
...
@@ -92,8 +92,10 @@ class Witness(BlockchainObject):
...
@@ -92,8 +92,10 @@ class Witness(BlockchainObject):
else
:
else
:
quote
=
Amount
(
quote
,
"
STEEM
"
,
steem_instance
=
self
.
steem
)
quote
=
Amount
(
quote
,
"
STEEM
"
,
steem_instance
=
self
.
steem
)
assert
base
.
symbol
==
"
SBD
"
if
not
base
.
symbol
==
"
SBD
"
:
assert
quote
.
symbol
==
"
STEEM
"
raise
AssertionError
()
if
not
quote
.
symbol
==
"
STEEM
"
:
raise
AssertionError
()
op
=
operations
.
Feed_publish
(
op
=
operations
.
Feed_publish
(
**
{
**
{
...
...
This diff is collapsed.
Click to expand it.
beembase/operations.py
+
4
−
4
View file @
cba84249
...
@@ -150,8 +150,8 @@ class Account_create(GrapheneObject):
...
@@ -150,8 +150,8 @@ class Account_create(GrapheneObject):
kwargs
=
args
[
0
]
kwargs
=
args
[
0
]
prefix
=
kwargs
.
get
(
"
prefix
"
,
default_prefix
)
prefix
=
kwargs
.
get
(
"
prefix
"
,
default_prefix
)
asser
t
len
(
kwargs
[
"
new_account_name
"
]
if
no
t
len
(
kwargs
[
"
new_account_name
"
]
)
<=
16
:
)
<=
16
,
"
Account name must be at most 16 chars long
"
raise
AssertionError
(
"
Account name must be at most 16 chars long
"
)
meta
=
""
meta
=
""
if
"
json_metadata
"
in
kwargs
and
kwargs
[
"
json_metadata
"
]:
if
"
json_metadata
"
in
kwargs
and
kwargs
[
"
json_metadata
"
]:
...
@@ -183,8 +183,8 @@ class Account_create_with_delegation(GrapheneObject):
...
@@ -183,8 +183,8 @@ class Account_create_with_delegation(GrapheneObject):
kwargs
=
args
[
0
]
kwargs
=
args
[
0
]
prefix
=
kwargs
.
get
(
"
prefix
"
,
default_prefix
)
prefix
=
kwargs
.
get
(
"
prefix
"
,
default_prefix
)
asser
t
len
(
kwargs
[
"
new_account_name
"
]
if
no
t
len
(
kwargs
[
"
new_account_name
"
]
)
<=
16
:
)
<=
16
,
"
Account name must be at most 16 chars long
"
raise
AssertionError
(
"
Account name must be at most 16 chars long
"
)
meta
=
""
meta
=
""
if
"
json_metadata
"
in
kwargs
and
kwargs
[
"
json_metadata
"
]:
if
"
json_metadata
"
in
kwargs
and
kwargs
[
"
json_metadata
"
]:
...
...
This diff is collapsed.
Click to expand it.
tox.ini
+
2
−
1
View file @
cba84249
...
@@ -34,7 +34,8 @@ commands =
...
@@ -34,7 +34,8 @@ commands =
[testenv:coverage]
[testenv:coverage]
deps
=
coverage
deps
=
coverage
commands
=
commands
=
py.test
--cov-report
xml:/home/circleci/repo/.tox/upload_coverage/coverage.xml
{envpython}
-m
coverage
run
-s
tests
{envpython}
-m
coverage
xml
[testenv:upload_coverage]
[testenv:upload_coverage]
deps
=
coverage
deps
=
coverage
...
...
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