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: add hashing api to wallet secret keys #4424

Conversation

hansieodendaal
Copy link
Contributor

Description

Partial fulfillment for #4395:

  • base_layer/wallet/src/output_manager_service/service.rs, fn hash_secret_key(...)
  • base_layer/wallet/src/transaction_service/service.rs, fn hash_secret_key(...)

Motivation and Context

Domain separated hashing as per the tari_crypto hashing API is needed for secret keys

How Has This Been Tested?

Unit tests pass
Cucumber tests pass

sdbondi
sdbondi previously approved these changes Aug 9, 2022
applications/tari_console_wallet/src/main.rs Outdated Show resolved Hide resolved

hash_domain!(
WalletSecretKeysDomain,
"com.tari.tari_project.base_layer.wallet.secret_keys",
Copy link
Member

Choose a reason for hiding this comment

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

Why add tari_project to the hash domain?

Copy link
Contributor Author

@hansieodendaal hansieodendaal Aug 10, 2022

Choose a reason for hiding this comment

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

This is to differentiate between different Tari GitHub projects.

- base_layer/wallet/src/output_manager_service/service.rs, fn hash_secret_key(...)
- base_layer/wallet/src/transaction_service/service.rs, fn hash_secret_key(...)
@stringhandler stringhandler merged commit d944574 into tari-project:development Aug 10, 2022
@hansieodendaal hansieodendaal deleted the ho_hashing_api_wallet_secret_keys branch August 10, 2022 15:03
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