Skip to content
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

feat: keep keys in compressed form #6753

Merged
merged 9 commits into from
Jan 28, 2025

Conversation

SWvheerden
Copy link
Collaborator

@SWvheerden SWvheerden commented Jan 20, 2025

Description

Keeps all crypto public keys in compressed form, and only uncompressing when needed.

Motivation and Context

This should improve speed and reduce the compression of keys. Comparing unit test speeds this PR is roughly the same as before. But unit test almost always do crypto operations to ensure everything is correct. Where this PR increases performance is when only reading something and providing it. For example, just reading the mainnet gen block in its current form on avg it takes 56 seconds. With this pr this time is taken down to on avg 15 seconds. Thats a 370% speed improvement.

How Has This Been Tested?

unit tests

@SWvheerden SWvheerden requested a review from a team as a code owner January 20, 2025 12:07
Copy link

github-actions bot commented Jan 20, 2025

Test Results (Integration tests)

 2 files  11 suites   31m 9s ⏱️
36 tests 35 ✅ 0 💤 1 ❌
37 runs  36 ✅ 0 💤 1 ❌

For more details on these failures, see this check.

Results for commit 028135a.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 20, 2025

Test Results (CI)

    3 files    129 suites   38m 3s ⏱️
1 352 tests 1 352 ✅ 0 💤 0 ❌
4 054 runs  4 054 ✅ 0 💤 0 ❌

Results for commit 028135a.

♻️ This comment has been updated with latest results.

base_layer/common_types/src/wallet_types.rs Outdated Show resolved Hide resolved
base_layer/common_types/src/types/mod.rs Outdated Show resolved Hide resolved
comms/core/src/noise/crypto_resolver.rs Outdated Show resolved Hide resolved
@SWvheerden SWvheerden changed the title [wip] feat: Keep keys in compressed form feat: keep keys in compressed form Jan 24, 2025
@SWvheerden SWvheerden force-pushed the sw_compressed_keys branch 2 times, most recently from e319861 to 6858def Compare January 27, 2025 13:35
wip

building

fix more tests

WIP on sw_compressed_keys

more fixes

remove useless test

wip

small changes

refactor names

remove public view key display

up version
@SWvheerden SWvheerden merged commit f0fd7f1 into tari-project:development Jan 28, 2025
16 of 17 checks passed
@SWvheerden SWvheerden deleted the sw_compressed_keys branch January 30, 2025 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants