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

Kevin/stack too deep rewards #85

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

kevincheng96
Copy link
Contributor

No description provided.

Adds `nonceSecret` and `replayCount` to QuarkBuilder. For replayable
operations, the QuarkBuilder will also generate the nonce using the
`nonceSecret` and `replayCount` (see `generateNonceFromSecret`
function).

We also uncover and fix a bug where `0` is being used as the `nonce` for
an operation when a nonce is not provided for an account by the client.
Now, the code reverts if a `nonceSecret` is not given for an account. We
buff up the unit tests to assert the right values are being used for the
nonces, since nonces were being checked previously.
@kevincheng96 kevincheng96 force-pushed the kevin/quark-v2 branch 2 times, most recently from fc9d209 to e5e823c Compare September 26, 2024 00:02
Base automatically changed from kevin/quark-v2 to main September 30, 2024 18:00
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.

1 participant