-
Notifications
You must be signed in to change notification settings - Fork 217
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
Construct address with key hashes #3420
Merged
iohk-bors
merged 11 commits into
master
from
paweljakubas/adp-1985/construct-address-with-hashes
Aug 4, 2022
Merged
Construct address with key hashes #3420
iohk-bors
merged 11 commits into
master
from
paweljakubas/adp-1985/construct-address-with-hashes
Aug 4, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paweljakubas
force-pushed
the
paweljakubas/adp-1985/construct-address-with-hashes
branch
from
August 3, 2022 12:11
9672cac
to
84b08cf
Compare
paweljakubas
requested review from
HeinrichApfelmus,
Unisay,
piotr-iohk,
jonathanknowles and
paolino
August 3, 2022 12:11
HeinrichApfelmus
approved these changes
Aug 4, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks! 😊
@piotr-iohk may want to take another look, but the integration tests give me confidence that the code works as advertised.
paweljakubas
force-pushed
the
paweljakubas/adp-1985/construct-address-with-hashes
branch
from
August 4, 2022 13:32
84b08cf
to
02fccba
Compare
bors r+ |
iohk-bors bot
added a commit
that referenced
this pull request
Aug 4, 2022
3420: Construct address with hashes r=paweljakubas a=paweljakubas <!-- Detail in a few bullet points the work accomplished in this PR. Before you submit, don't forget to: * Make sure the GitHub PR fields are correct: ✓ Set a good Title for your PR. ✓ Assign yourself to the PR. ✓ Assign one or more reviewer(s). ✓ Link to a Jira issue, and/or other GitHub issues or PRs. ✓ In the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. * Don't waste reviewers' time: ✓ If it's a draft, select the Create Draft PR option. ✓ Self-review your changes to make sure nothing unexpected slipped through. * Try to make your intent clear: ✓ Write a good Description that explains what this PR is meant to do. ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding Jira ticket. ✓ Highlight what Testing you have done. ✓ Acknowledge any changes required to the Documentation. --> - [x] used CredentialFromKeyHash in ApiCredential - [x] added extended public key in ApiCredential - [x] cleaned parser (better reuse), also updated swagger - [x] added more golden in ANY_ADDRESS ### Comments depends on IntersectMBO/cardano-addresses#193 <!-- Additional comments, links, or screenshots to attach, if any. --> ### Issue Number adp-1985 <!-- Reference the Jira/GitHub issue that this PR relates to, and which requirements it tackles. Note: Jira issues of the form ADP- will be auto-linked. --> Co-authored-by: Pawel Jakubas <[email protected]> Co-authored-by: Jonathan Knowles <[email protected]>
Steps: 1. Identify the set of types for which there are no JSON golden data files: ``` $ cabal run cardano-wallet-core:test:unit -- --match "produces the same JSON" | grep -i missing Missing golden file: lib/core/test/data/Cardano/Wallet/Api/ApiAddressData.json Missing golden file: lib/core/test/data/Cardano/Wallet/Api/ApiCredential.json ``` 2. Identify the set of types for which JSON golden data files are out-of-date: ``` $ cabal run cardano-wallet-core:test:unit -- --match "produces the same JSON" | grep -i warning WARNING: Encoding new random samples do not match lib/core/test/data/Cardano/Wallet/Api/ApiNetworkInformation.json. WARNING: Encoding new random samples do not match lib/core/test/data/Cardano/Wallet/Api/WalletPutPassphraseData.json. ``` 3. Delete the out-of-date files: ``` rm lib/core/test/data/Cardano/Wallet/Api/ApiNetworkInformation.json rm lib/core/test/data/Cardano/Wallet/Api/WalletPutPassphraseData.json ``` 4. Generate new golden files for both sets (missing and out-of-date): ``` CREATE_MISSING_GOLDEN=TRUE cabal run cardano-wallet-core:test:unit -- --match "produces the same JSON" ``` 5. Add updated files to git: ``` git add lib/core/test/data ```
paweljakubas
changed the title
Construct address with hashes
Construct address with key hashes
Aug 4, 2022
Build failed:
|
bors r+ |
iohk-bors bot
added a commit
that referenced
this pull request
Aug 4, 2022
3420: Construct address with key hashes r=paweljakubas a=paweljakubas <!-- Detail in a few bullet points the work accomplished in this PR. Before you submit, don't forget to: * Make sure the GitHub PR fields are correct: ✓ Set a good Title for your PR. ✓ Assign yourself to the PR. ✓ Assign one or more reviewer(s). ✓ Link to a Jira issue, and/or other GitHub issues or PRs. ✓ In the PR description delete any empty sections and all text commented in <!--, so that this text does not appear in merge commit messages. * Don't waste reviewers' time: ✓ If it's a draft, select the Create Draft PR option. ✓ Self-review your changes to make sure nothing unexpected slipped through. * Try to make your intent clear: ✓ Write a good Description that explains what this PR is meant to do. ✓ Jira will detect and link to this PR once created, but you can also link this PR in the description of the corresponding Jira ticket. ✓ Highlight what Testing you have done. ✓ Acknowledge any changes required to the Documentation. --> - [x] used CredentialFromKeyHash in ApiCredential - [x] added extended public key in ApiCredential - [x] cleaned parser (better reuse), also updated swagger - [x] added more golden in ANY_ADDRESS ### Comments depends on IntersectMBO/cardano-addresses#193 <!-- Additional comments, links, or screenshots to attach, if any. --> ### Issue Number adp-1985 <!-- Reference the Jira/GitHub issue that this PR relates to, and which requirements it tackles. Note: Jira issues of the form ADP- will be auto-linked. --> Co-authored-by: Pawel Jakubas <[email protected]> Co-authored-by: Jonathan Knowles <[email protected]>
Build failed:
|
bors r+ |
Build succeeded: |
iohk-bors
bot
deleted the
paweljakubas/adp-1985/construct-address-with-hashes
branch
August 4, 2022 17:17
WilliamKingNoel-Bot
pushed a commit
that referenced
this pull request
Aug 4, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Comments
depends on IntersectMBO/cardano-addresses#193
Issue Number
adp-1985