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

Preserve ScriptData bytes with HashableScriptData #4886

Merged
merged 2 commits into from
Feb 28, 2023

Conversation

Jimbo4350
Copy link
Contributor

@Jimbo4350 Jimbo4350 commented Feb 14, 2023

Resolves: #4433

@Jimbo4350 Jimbo4350 force-pushed the jordan/preserve-original-bytes branch 5 times, most recently from 0350341 to 9f460bf Compare February 14, 2023 17:19
@Jimbo4350 Jimbo4350 marked this pull request as ready for review February 14, 2023 17:19
@Jimbo4350 Jimbo4350 force-pushed the jordan/preserve-original-bytes branch 4 times, most recently from b0604dc to b05dec3 Compare February 16, 2023 18:38
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

looks great to me @Jimbo4350 !

@Jimbo4350 Jimbo4350 force-pushed the jordan/preserve-original-bytes branch from b05dec3 to 9bc4980 Compare February 17, 2023 13:27
@Jimbo4350 Jimbo4350 force-pushed the jordan/preserve-original-bytes branch 2 times, most recently from b03965b to 26008d1 Compare February 17, 2023 13:40
@Jimbo4350
Copy link
Contributor Author

bors r+

iohk-bors bot added a commit that referenced this pull request Feb 17, 2023
4831: Refactor `genesis create` command usage in  cardano testnet r=Jimbo4350 a=Jimbo4350

Implement the following three modules:
1. Testnet.Commands.Genesis - Houses the refactoring of cli commands concerning genesis generation

2. Testnet.Commands.Governance - Houses the refactoring of cli commands concerning governance 

3. Testnet.Options - Module that will house all the different `TestnetOptions` types. The aim is to only have one `TestnetOptions` type in the future.

4886: Preserve `ScriptData` bytes with `HashableScriptData` r=Jimbo4350 a=Jimbo4350

Resolves: #4433

Co-authored-by: Jordan Millar <[email protected]>
@Jimbo4350
Copy link
Contributor Author

bors r-

@iohk-bors
Copy link
Contributor

iohk-bors bot commented Feb 17, 2023

Canceled.

…ed with

the `HashableScriptData` type. Prior to this commit we were constructing
transactions with `toAlonzoData` which created a ledger `Data`
value without using the original bytes. Although the content is the same
this can result in the re-encoded value differing slightly and therefore
resulting in differing script data hashes. See:
IntersectMBO/cardano-ledger#2943 for more
details.
@Jimbo4350 Jimbo4350 force-pushed the jordan/preserve-original-bytes branch from a8ca187 to 5457bd9 Compare February 27, 2023 16:48
@Jimbo4350 Jimbo4350 merged commit f1532d5 into master Feb 28, 2023
@iohk-bors iohk-bors bot deleted the jordan/preserve-original-bytes branch February 28, 2023 15:32
Jimbo4350 added a commit that referenced this pull request Mar 2, 2023
was introduced by #4886

readScriptDataOrFile was reverted to read ScriptData json with the detailed schema format (ScriptDataJsonDetailedSchema)
Jimbo4350 added a commit that referenced this pull request Mar 3, 2023
was introduced by #4886

readScriptDataOrFile was reverted to read ScriptData json with the detailed schema format (ScriptDataJsonDetailedSchema)
Jimbo4350 added a commit that referenced this pull request Mar 6, 2023
was introduced by #4886

readScriptDataOrFile was reverted to read ScriptData json with the detailed schema format (ScriptDataJsonDetailedSchema)
Jimbo4350 added a commit that referenced this pull request Mar 6, 2023
was introduced by #4886

readScriptDataOrFile was reverted to read ScriptData json with the detailed schema format (ScriptDataJsonDetailedSchema)
Jimbo4350 added a commit that referenced this pull request Mar 6, 2023
was introduced by #4886

readScriptDataOrFile was reverted to read ScriptData json with the detailed schema format (ScriptDataJsonDetailedSchema)
newhoggy pushed a commit to IntersectMBO/cardano-api that referenced this pull request May 23, 2023
was introduced by IntersectMBO/cardano-node#4886

readScriptDataOrFile was reverted to read ScriptData json with the detailed schema format (ScriptDataJsonDetailedSchema)
newhoggy pushed a commit to IntersectMBO/cardano-cli that referenced this pull request May 24, 2023
was introduced by IntersectMBO/cardano-node#4886

readScriptDataOrFile was reverted to read ScriptData json with the detailed schema format (ScriptDataJsonDetailedSchema)
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.

[BUG] - Possible corruption of datum by CLI
3 participants