-
Notifications
You must be signed in to change notification settings - Fork 213
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
Tx metadata extracted from binary blocks #2077
Comments
@rvl from quickly looking at |
Yes it could be better actually because it helps with validating new transactions. Also I am thinking it's better to have TxMetadata inside the Tx type rather than TxMeta. |
2079: Get TxMetadata from blocks on chain r=rvl a=rvl ### Issue Number ADP-307 / #2077 ### Overview - Initial types, etc. ### Comments - I don't have any serialized block data to make golden tests. But the testing can be done with integration tests. 2088: Bump cardano-base so that shelley-spec-ledger-test compiles r=rvl a=rvl ### Issue Number Found during #2077. ### Overview If you are keen enough to build the test suites of all our dependencies, you would have found `shelley-spec-ledger-test` failing to compile, because it needs a later revision of `cardano-base`. This will fix it. 2092: Fix stack build on windows r=rvl a=rvl ### Issue Number None ### Overview On windows, the stack build would fail with some missing dependencies. There is some stack issue with GHC boot packages. The recommended course of action is to add them as `extra-deps` in `stack.yaml`. This fixes the build. ### Comments Since the libsodium VRF was added, there is now an extra step to get stack builds working on windows. I have updated our [iohk-setup.ps1](https://github.com/input-output-hk/adrestia/wiki/scripts/iohk-setup.ps1) script to install libsodium and configure stack to use it. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: IOHK <devops+stack-project@iohk.io>
2088: Bump cardano-base so that shelley-spec-ledger-test compiles r=rvl a=rvl ### Issue Number Found during #2077. ### Overview If you are keen enough to build the test suites of all our dependencies, you would have found `shelley-spec-ledger-test` failing to compile, because it needs a later revision of `cardano-base`. This will fix it. 2092: Fix stack build on windows r=rvl a=rvl ### Issue Number None ### Overview On windows, the stack build would fail with some missing dependencies. There is some stack issue with GHC boot packages. The recommended course of action is to add them as `extra-deps` in `stack.yaml`. This fixes the build. ### Comments Since the libsodium VRF was added, there is now an extra step to get stack builds working on windows. I have updated our [iohk-setup.ps1](https://github.com/input-output-hk/adrestia/wiki/scripts/iohk-setup.ps1) script to install libsodium and configure stack to use it. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io> Co-authored-by: IOHK <devops+stack-project@iohk.io>
2079: Get TxMetadata from blocks on chain r=rvl a=rvl ### Issue Number ADP-307 / #2077 ### Overview - Initial types, etc. ### Comments - I don't have any serialized block data to make golden tests. But the testing can be done with integration tests. Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
lgtm. |
Context
Metadata must be serialized as CBOR in transactions. However, we should input and output JSON at the system boundary, and convert between JSON/CBOR internally.
User story ADP-307
References
See Appendix E of Delegation Design Spec
Decision
There's an existing implementation in cardano-api for doing JSON/CBOR conversions. We can hopefully re-use this. See: https://github.com/input-output-hk/cardano-node/blob/495366939621d4a413d000494ec01a8b0f5edc26/cardano-api/src/Cardano/Api/MetaData.hs
Although it is possible to translate any JSON into CBOR, the reciprocal isn't true. There are therefore arbitrary choices made regarding the transformation JSON/CBOR to make sure it can roundtrip under several assumptions.
AC
Development
TxMeta
type to include metadata as an aesonValue
.Value
from metadata.QA
lib/core-integration/src/Test/Integration/Scenario/API/Shelley/Transactions.hs
⇒ Tx metadata API integration tests #2096.The text was updated successfully, but these errors were encountered: