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!: fix key manager use of keys #6407

Merged
merged 8 commits into from
Jul 17, 2024

Conversation

SWvheerden
Copy link
Collaborator

@SWvheerden SWvheerden commented Jul 16, 2024

Description

Fixes Key manager key use
Allows creating of scan only wallets that don't have access to the spend key
Allows more than one address

Motivation and Context

This allows us to display interactive and one-sided address for ledger type wallets, displaying the correct keys for use with each type.
The new wallet type also allows users to create scan only wallets that have a private view key and not have access to the private key for spending.

How Has This Been Tested?

Manual

Breaking change

Changes byte representation of keys which needs matching ledger wallet version to work correctly

@SWvheerden SWvheerden requested a review from a team as a code owner July 16, 2024 07:04
Copy link

github-actions bot commented Jul 16, 2024

Test Results (CI)

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

Results for commit 39d6e3a.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added the P-acks_required Process - Requires more ACKs or utACKs label Jul 16, 2024
Copy link

github-actions bot commented Jul 16, 2024

Test Results (Integration tests)

 2 files  + 2  11 suites  +11   42m 52s ⏱️ + 42m 52s
35 tests +35  33 ✅ +33  0 💤 ±0  2 ❌ +2 
39 runs  +39  33 ✅ +33  0 💤 ±0  6 ❌ +6 

For more details on these failures, see this check.

Results for commit 39d6e3a. ± Comparison against base commit 446a118.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Jul 16, 2024
@SWvheerden SWvheerden changed the title [wip]feat: fix key manager use of keys feat: fix key manager use of keys Jul 16, 2024
Copy link
Collaborator

@stringhandler stringhandler left a comment

Choose a reason for hiding this comment

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

Not an exhaustive review, but happy with the concept. I think it needs to be changed to be a BREAKING CHANGE, as noted below

base_layer/common_types/src/lib.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/key_manager/inner.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/key_manager/inner.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/key_manager/interface.rs Outdated Show resolved Hide resolved
base_layer/core/src/transactions/key_manager/interface.rs Outdated Show resolved Hide resolved
@SWvheerden SWvheerden changed the title feat: fix key manager use of keys feat!: fix key manager use of keys Jul 17, 2024
@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Jul 17, 2024
@SWvheerden SWvheerden merged commit 35db898 into tari-project:development Jul 17, 2024
14 of 16 checks passed
@SWvheerden SWvheerden deleted the sw_fix_keys 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants