Skip to content

store token request hash in rwsets #597

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

Merged
merged 3 commits into from
Apr 18, 2024
Merged

store token request hash in rwsets #597

merged 3 commits into from
Apr 18, 2024

Conversation

adecaro
Copy link
Contributor

@adecaro adecaro commented Apr 11, 2024

The translation of the token request for fabric and orion contain the hash of the token request to later be checked again the local copy.

@adecaro adecaro self-assigned this Apr 11, 2024
@adecaro adecaro linked an issue Apr 11, 2024 that may be closed by this pull request
9 tasks
@adecaro adecaro mentioned this pull request Apr 11, 2024
9 tasks
@@ -23,6 +27,7 @@ type Context[P driver.PublicParameters, T any, TA driver.TransferAction, IA driv
IssueAction IA
Ledger driver.Ledger
MetadataCounter map[string]int
Attributes map[string][]byte
Copy link
Contributor

Choose a reason for hiding this comment

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

If we really need to pass a map and not a struct with a stricter structure, I would suggest at least we pass a map[AttributeType][]byte where AttributeType is an enum, so that we know what to expect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@alexandrosfilios alexandrosfilios left a comment

Choose a reason for hiding this comment

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

LGTM

@adecaro adecaro merged commit d446947 into main Apr 18, 2024
@adecaro adecaro deleted the f-store-trhash branch April 18, 2024 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

improved transaction flows
2 participants