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

[fastx crypto] audit Object ID derivation #58

Closed
sblackshear opened this issue Dec 15, 2021 · 2 comments
Closed

[fastx crypto] audit Object ID derivation #58

sblackshear opened this issue Dec 15, 2021 · 2 comments
Assignees

Comments

@sblackshear
Copy link
Collaborator

sblackshear commented Dec 15, 2021

We need to define a ObjectIDPreimage struct that holds (transaction_id, new_obj_sequence), then make it BcsSignable and use sha3_hash to get the digest. This ensures that we have one way to derive hashes (incl. for what we sign) and therefore domain separation is ensured uniformly..

@kchalkias
Copy link
Collaborator

The Signable interface might be deprecated after introducing IntentSigning, which is a unified (lang-agnostic) way to offer domain separation re what we're signing.

@sblackshear
Copy link
Collaborator Author

Great news! I will close this, in that case.

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

No branches or pull requests

5 participants