Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Problem: slightly slow hash function (fixes #1111) #1325

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

tomtau
Copy link
Contributor

@tomtau tomtau commented Mar 30, 2020

Solution: switched to blake3, as blake2s was more of a temporary choice (it was planned to use e.g. blake2sp later on;
blake3 is relatively similar and includes these techniques by default)

  • blake3 used in message digest (txid) + trie hasher
  • simplified merkle tree code with keyed hashes
  • simplified client-* derivation code with derive_key mode (instead of that old hmac combo code)

NOTE: one syncer test is broken and ignored for the moment, as it'd require regeneration of asset files

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@tomtau
Copy link
Contributor Author

tomtau commented Mar 30, 2020

bors try

bors bot added a commit that referenced this pull request Mar 30, 2020
@bors
Copy link
Contributor

bors bot commented Mar 30, 2020

try

Build failed

@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #1325 into master will decrease coverage by 0.32%.
The diff coverage is 98.75%.

@@            Coverage Diff             @@
##           master    #1325      +/-   ##
==========================================
- Coverage   63.58%   63.26%   -0.33%     
==========================================
  Files         152      152              
  Lines       20674    20656      -18     
==========================================
- Hits        13146    13067      -79     
- Misses       7528     7589      +61
Impacted Files Coverage Δ
client-core/src/wallet/syncer.rs 53.39% <ø> (-15.64%) ⬇️
client-core/src/service/hd_key_service.rs 83.07% <ø> (ø) ⬆️
chain-core/src/tx/mod.rs 62.43% <ø> (ø) ⬆️
client-rpc/src/rpc/wallet_rpc.rs 62.62% <ø> (ø) ⬆️
client-common/src/seckey.rs 93.18% <100%> (ø) ⬆️
chain-core/src/state/account.rs 75.6% <100%> (+0.06%) ⬆️
chain-core/src/state/mod.rs 91.89% <100%> (-2.71%) ⬇️
chain-core/src/init/params.rs 71.6% <100%> (ø) ⬆️
chain-core/src/common/merkle_tree.rs 98.76% <100%> (+0.21%) ⬆️
chain-core/src/lib.rs 91.66% <100%> (ø) ⬆️
... and 8 more

Copy link
Collaborator

@devashishdxt devashishdxt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Resolve merge conflicts
  • Squash commits

@tomtau
Copy link
Contributor Author

tomtau commented Mar 31, 2020

bors r+

bors bot added a commit that referenced this pull request Mar 31, 2020
1325: Problem: slightly slow hash function (fixes #1111) r=tomtau a=tomtau

Solution: switched to blake3, as blake2s was more of a temporary choice (it was planned to use e.g. blake2sp later on;
blake3 is relatively similar and includes these techniques by default)
- blake3 used in message digest (txid) + trie hasher
- simplified merkle tree code with keyed hashes
- simplified client-* derivation code with `derive_key` mode (instead of that old hmac combo code)

NOTE: one syncer test is broken and ignored for the moment, as it'd require regeneration of asset files


Co-authored-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Mar 31, 2020

Build failed

@tomtau
Copy link
Contributor Author

tomtau commented Mar 31, 2020

bors retry

bors bot added a commit that referenced this pull request Mar 31, 2020
1325: Problem: slightly slow hash function (fixes #1111) r=tomtau a=tomtau

Solution: switched to blake3, as blake2s was more of a temporary choice (it was planned to use e.g. blake2sp later on;
blake3 is relatively similar and includes these techniques by default)
- blake3 used in message digest (txid) + trie hasher
- ~~simplified merkle tree code with keyed hashes~~
- simplified client-* derivation code with `derive_key` mode (instead of that old hmac combo code)

NOTE: one syncer test is broken and ignored for the moment, as it'd require regeneration of asset files


Co-authored-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
@bors
Copy link
Contributor

bors bot commented Mar 31, 2020

Canceled

@tomtau
Copy link
Contributor Author

tomtau commented Mar 31, 2020

bors retry

bors bot added a commit that referenced this pull request Mar 31, 2020
1325: Problem: slightly slow hash function (fixes #1111) r=tomtau a=tomtau

Solution: switched to blake3, as blake2s was more of a temporary choice (it was planned to use e.g. blake2sp later on;
blake3 is relatively similar and includes these techniques by default)
- blake3 used in message digest (txid) + trie hasher
- ~~simplified merkle tree code with keyed hashes~~
- simplified client-* derivation code with `derive_key` mode (instead of that old hmac combo code)

NOTE: one syncer test is broken and ignored for the moment, as it'd require regeneration of asset files


Co-authored-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
tomtau added a commit to tomtau/chain-docs that referenced this pull request Mar 31, 2020
tomtau added a commit to crypto-com/thaler-docs that referenced this pull request Mar 31, 2020
@bors
Copy link
Contributor

bors bot commented Mar 31, 2020

Build failed

Copy link
Collaborator

@devashishdxt devashishdxt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Update integration tests

@tomtau
Copy link
Contributor Author

tomtau commented Mar 31, 2020

bors retry

bors bot added a commit that referenced this pull request Mar 31, 2020
1325: Problem: slightly slow hash function (fixes #1111) r=tomtau a=tomtau

Solution: switched to blake3, as blake2s was more of a temporary choice (it was planned to use e.g. blake2sp later on;
blake3 is relatively similar and includes these techniques by default)
- blake3 used in message digest (txid) + trie hasher
- ~~simplified merkle tree code with keyed hashes~~
- simplified client-* derivation code with `derive_key` mode (instead of that old hmac combo code)

NOTE: one syncer test is broken and ignored for the moment, as it'd require regeneration of asset files


Co-authored-by: Tomas Tauber <2410580+tomtau@users.noreply.github.com>
Solution: switched to blake3, as blake2s was more of a temporary choice (it was planned to use e.g. blake2sp later on;
blake3 is relatively similar and includes these techniques by default)
- blake3 used in message digest (txid) + trie hasher
- simplified merkle tree code with hashers instead of intermediate vectors
- simplified client-* derivation code with `derive_key` mode (instead of that old hmac combo code)

NOTE: one syncer test is broken and ignored for the moment, as it'd require regeneration of asset files
@bors
Copy link
Contributor

bors bot commented Mar 31, 2020

Canceled

@tomtau
Copy link
Contributor Author

tomtau commented Mar 31, 2020

bors retry

@bors
Copy link
Contributor

bors bot commented Mar 31, 2020

@bors bors bot merged commit ba4a09d into crypto-com:master Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants