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

chore: refactor key manager names #6411

Merged
merged 4 commits into from
Jul 19, 2024

Conversation

SWvheerden
Copy link
Collaborator

Description

refactors the key manger names to ensure they are easier to read

Motivation and Context

the names are not correct and all over the place. This changes the names to make it easier to read the code.

How Has This Been Tested?

unit test

@SWvheerden SWvheerden requested a review from a team as a code owner July 17, 2024 15:02
Copy link

github-actions bot commented Jul 17, 2024

Test Results (CI)

    3 files    120 suites   36m 37s ⏱️
1 294 tests 1 294 ✅ 0 💤 0 ❌
3 874 runs  3 874 ✅ 0 💤 0 ❌

Results for commit 5a6a2d9.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Jul 17, 2024
Copy link

github-actions bot commented Jul 17, 2024

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   16m 53s ⏱️ + 16m 53s
35 tests +35  34 ✅ +34  0 💤 ±0  1 ❌ +1 
37 runs  +37  34 ✅ +34  0 💤 ±0  3 ❌ +3 

For more details on these failures, see this check.

Results for commit 5a6a2d9. ± Comparison against base commit 35db898.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

Happy with the most part, except:

  • spend_key or spending_key should be changed with commitment_mask, not with commitment_mask_key or commitment_mask_key_id
  • If something is of type KeyAndId, we should be careful to not repeat ourselves in the name, but sometime it is fine like view_key and 'spend_key`.

base_layer/core/src/blocks/faucets/mod.rs Outdated Show resolved Hide resolved
base_layer/core/src/blocks/faucets/mod.rs Outdated Show resolved Hide resolved
base_layer/core/src/blocks/faucets/mod.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/test_helpers.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/test_helpers.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/test_helpers.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/test_helpers.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/test_helpers.rs Outdated Show resolved Hide resolved
SWvheerden and others added 2 commits July 18, 2024 15:54
Co-authored-by: Hansie Odendaal <39146854+hansieodendaal@users.noreply.github.com>
Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

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

utACK

@SWvheerden SWvheerden merged commit e377f4b into tari-project:development Jul 19, 2024
14 of 16 checks passed
@SWvheerden SWvheerden deleted the sw_refactor branch July 19, 2024 09:41
sdbondi added a commit to sdbondi/tari that referenced this pull request Jul 22, 2024
* development: (93 commits)
  chore: fix build and osp (tari-project#6415)
  chore: refactor key manager names (tari-project#6411)
  fix: panic in from_base58 fn (tari-project#6414)
  fix: branch keys (tari-project#6413)
  chore: remove dependancy on ledger for common types (tari-project#6412)
  feat: count unique keys (tari-project#6401)
  feat!: fix key manager use of keys (tari-project#6407)
  refactor: remove metadata sig and use difference key branch for offset (tari-project#6400)
  feat: update ledger instructions (tari-project#6406)
  feat: add file-based input and output to faucet commands (tari-project#6405)
  chore: new release v1.0.0-pre.16 (tari-project#6404)
  feat: simplify leader sig generation (tari-project#6399)
  ci(fix): include macOS universal assets in release (tari-project#6402)
  fix: script dependance on party order (tari-project#6398)
  fix: claim n of m faucet (tari-project#6389)
  feat: add ffi features (tari-project#6390)
  chore: fix unwraps in memory key manager (tari-project#6396)
  docs: update hasher documentation (tari-project#6392)
  chore: fix ci (tari-project#6391)
  feat(miner): add SHA P2Pool mining related configuration and changes (tari-project#6370)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants