-
Notifications
You must be signed in to change notification settings - Fork 770
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
Switch to ED25519 signing scheme #152
Switch to ED25519 signing scheme #152
Conversation
set ed25519 as default
Current coverage is
|
I guess for now we should just stick to one signing scheme |
Note that this is a breaking change in the sense that the keypairs need to be regenerated @vrde any feedback? |
'name': DB_NAME | ||
}, | ||
'keypair': { | ||
'private': '3wssdnSNsZYLvvQwuag5QNQnSfc5N38KV1ZeAoeHQQVe59N7vReJwXWANf5nncGxW63UzR4qHHv6DJhyLs9arJng', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after updating cryptoconditions to version 0.1.1 we need to use the 32 byte private key instead
👍 |
…rypto-ed25519-compatible-signing-scheme Conflicts: setup.py
@diminator Please update the section of the docs where the signature algorithm is stated, and give a link or two to references on Ed25519. That's in http://bigchaindb.readthedocs.org/en/develop/cryptography.html |
@@ -298,7 +298,7 @@ def create_block(self, validated_transactions): | |||
# Calculate the hash of the new block | |||
block_data = util.serialize(block) | |||
block_hash = crypto.hash_data(block_data) | |||
block_signature = crypto.PrivateKey(self.me_private).sign(block_data) | |||
block_signature = crypto.SigningKey(self.me_private).sign(block_data).decode() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the decode
for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by default, the signature is bytes
, but that wont serialize
…5519-compatible-signing-scheme Switch to ED25519 signing scheme
see #137, part of #127
Note: all crypto tests are covered by cryptoconditions
Question: should we be able to configure the signing scheme?