Skip to content

Kevin/stack too deep rewards#85

Open
kevincheng96 wants to merge 7 commits intomainfrom
kevin/stack-too-deep-rewards
Open

Kevin/stack too deep rewards#85
kevincheng96 wants to merge 7 commits intomainfrom
kevin/stack-too-deep-rewards

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