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

Added comment explaining discrepancy in the field names. #113

Merged
merged 2 commits into from
May 14, 2024

Conversation

pompon0
Copy link
Collaborator

@pompon0 pompon0 commented May 1, 2024

When changing the crypto keys back from bn254 to bls12_381, we forgot to rename the proto fields as well. It is not feasible to do it now, because of backward compatibility, so I've just added comments to explain the discrepancy.

@pompon0 pompon0 requested a review from brunoffranca May 1, 2024 06:40
@brunoffranca
Copy link
Member

Why can't we change it in a backwards compatible way?

@brunoffranca
Copy link
Member

Also, is the field name visible only in code? I guess not, it's probably visible in logs too.

@pompon0
Copy link
Collaborator Author

pompon0 commented May 2, 2024

we store commitqc in postgres in jsonb format

@brunoffranca
Copy link
Member

Ok. But why can't we change the name?

@pompon0
Copy link
Collaborator Author

pompon0 commented May 7, 2024

because the commitqc contains a signature which contains this field. Jsonb uses the text names in encoding.

Copy link
Member

@brunoffranca brunoffranca left a comment

Choose a reason for hiding this comment

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

I still think we should find a way of changing the name that is backwards compatible. After all that's why we use protobuf. But since this is mostly a nuisance, I'll approve it anyway.

@pompon0 pompon0 merged commit 63a5635 into main May 14, 2024
5 checks passed
@pompon0 pompon0 deleted the gprusak-bad-name branch May 14, 2024 11:09
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.

None yet

2 participants