8000 461 audit fix 9 by JohnGuilding · Pull Request #579 · getwax/bls-wallet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

461 audit fix 9 #579

Merged
merged 4 commits into from
Apr 12, 2023
Merged

461 audit fix 9 #579

merged 4 commits into from
Apr 12, 2023

Conversation

JohnGuilding
Copy link
Collaborator
@JohnGuilding JohnGuilding commented Apr 12, 2023

What is this PR doing?

Implements audit fix 9

How can these changes be manually tested?

  • run contract tests

Does this PR resolve or contribute to any issues?

contributes to #461

Checklist

  • I have manually tested these changes
  • Post a link to the PR in the group chat

Guidelines

  • If your PR is not ready, mark it as a draft
  • The resolve conversation button is for reviewers, not authors
    • (But add a 'done' comment or similar)

@github-actions github-actions bot added clients contracts Smart contract related labels Apr 12, 2023
@@ -25,6 +29,7 @@ const signWalletAddress = async (

describe("Recovery", async function () {
const safetyDelaySeconds = 7 * 24 * 60 * 60;
const signatureExpiryWindow = 1200;
Copy link
Collaborator Author
@JohnGuilding JohnGuilding Apr 12, 2023

Choose a reason for hiding this comment

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

Chose this arbitrarily. Is equal to 100 12 second blocks.

Was a bit torn on whether this was a good variable name. Suggestions welcome :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks to be used as an offset, so signatureExpiryOffsetSeconds? (I like putting units in where meaningful)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Like that - agree the units make sense here. Will update to signatureExpiryOffsetSeconds

@JohnGuilding
Copy link
Collaborator Author

CI seems to be failing due to some typescript issues in the client module. Doesn't seem related to this PR - got the same failures running clients tests in latest from contract-updates. Can look into this if needed but leaving for now.

@@ -25,6 +29,7 @@ const signWalletAddress = async (

describe("Recovery", async function () {
const safetyDelaySeconds = 7 * 24 * 60 * 60;
const signatureExpiryWindow = 1200;
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks to be used as an offset, so signatureExpiryOffsetSeconds? (I like putting units in where meaningful)

30_000_000,
);

await fx.advanceTimeBy(safetyDelaySeconds + 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Minor: a couple of comments around the expiry timestamp, and expectations that the first set.. will succeed.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added

@JohnGuilding JohnGuilding merged commit b48dc20 into contract-updates Apr 12, 2023
@JohnGuilding JohnGuilding deleted the 461-audit-fix-9 branch April 12, 2023 15:57
@JohnGuilding JohnGuilding mentioned this pull request Apr 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
clients contracts Smart contract related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0