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!: move key manager service to key_manager #5284

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Moves the key_manager_services to key_manager_create

Motivation and Context

Currently, all transactions are built by supplying private keys to the constructor. The wallet implements a Key_manager_service that safely constructs the private key but this is then passed around in code to where it is used to sign transactions etc.

We want to refactor this, that the code only ask for a signature and not a private key. This means the private key generation should happen where core can access it. This will be refactored in a future PR. This is part of allowing support of Hardware devices in the future.

How Has This Been Tested?

Unit tests and manual tx sending

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify
    Requires data directory to be deleted on the wallet

BREAKING CHANGE: Requires data directory to be deleted on the wallet because it changes how the wallet database structure looks.

@SWvheerden SWvheerden force-pushed the sw_move_key_manager branch 2 times, most recently from cd212d5 to 9f83659 Compare April 5, 2023 11:37
stringhandler
stringhandler previously approved these changes Apr 5, 2023
@ghpbot-tari-project ghpbot-tari-project added the P-acks_required Process - Requires more ACKs or utACKs label Apr 5, 2023
stringhandler
stringhandler previously approved these changes Apr 5, 2023
@stringhandler stringhandler merged commit d50ed02 into tari-project:development Apr 5, 2023
SWvheerden added a commit that referenced this pull request Apr 5, 2023
##
[0.49.0-pre.6](v0.49.0-pre.5...v0.49.0-pre.6)
(2023-04-05)


### ⚠ BREAKING CHANGES

* move key manager service to key_manager (5284)
* add igor faucet (5281)
* reset dates for networks (5283)

### Features

* add igor faucet
([5281](#5281))
([bfc92fd](bfc92fd))
* added auxiliary callback to push base node state changes
[5109](#5109)
([#5257](#5257))
([b7f7d31](b7f7d31))
* move key manager service to key_manager
([5284](#5284))
([d50ed02](d50ed02))
* reset dates for networks
([5283](#5283))
([d6342a4](d6342a4))


### Bug Fixes

* resize transaction tab windows
([5290](#5290))
([bd95a85](bd95a85)),
closes [#4942](#4942)
[#5289](#5289)
[#12365](https://github.com/tari-project/tari/issues/12365)
@SWvheerden SWvheerden deleted the sw_move_key_manager branch May 3, 2023 09:20
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.

3 participants