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

refactor(crypto): remove ffjavascript and implement utils functions locally #944

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

ctrlc03
Copy link
Collaborator

@ctrlc03 ctrlc03 commented Dec 30, 2023

Description

Remove the large dependency ffjavascript which was used only for a couple of util functions. Also ensure that we safely convert a bigint to a buffer and thus result in serialized maci private keys being the same length.

Related issue(s)

Related to #793 and fix #458

Confirmation

@ctrlc03 ctrlc03 self-assigned this Dec 30, 2023
Copy link

netlify bot commented Dec 30, 2023

Deploy Preview for maci-typedoc ready!

Name Link
🔨 Latest commit 0b2986f
🔍 Latest deploy log https://app.netlify.com/sites/maci-typedoc/deploys/65957b547cf6c100081219e0
😎 Deploy Preview https://deploy-preview-944--maci-typedoc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ctrlc03 ctrlc03 added the dependencies Pull requests that update a dependency file label Dec 30, 2023
@ctrlc03 ctrlc03 force-pushed the deps/ffjavascript branch 2 times, most recently from 3ee26d1 to cf031ab Compare January 2, 2024 11:05
@ctrlc03 ctrlc03 force-pushed the deps/ffjavascript branch from cf031ab to 34612a0 Compare January 2, 2024 17:46
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

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

@ctrlc03 thanks, just few changes to improve

crypto/ts/__tests__/Utils.test.ts Outdated Show resolved Hide resolved
crypto/ts/bigIntUtils.ts Outdated Show resolved Hide resolved
crypto/ts/bigIntUtils.ts Outdated Show resolved Hide resolved
@ctrlc03 ctrlc03 requested a review from 0xmad January 3, 2024 09:28
@ctrlc03 ctrlc03 force-pushed the deps/ffjavascript branch 3 times, most recently from 88ea91a to 419b013 Compare January 3, 2024 15:07
Copy link
Collaborator

@0xmad 0xmad left a comment

Choose a reason for hiding this comment

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

@ctrlc03 thanks, just one minor style comment

crypto/ts/__tests__/Utils.test.ts Outdated Show resolved Hide resolved
…ocally

Remove large dependency ffjavascript which was used only for a couple of util functions. Also ensure
that we safely convert a bigint to a buffer and thus result in serialized maci private keys being
the same length

fix #458
@ctrlc03 ctrlc03 force-pushed the deps/ffjavascript branch from 419b013 to 0b2986f Compare January 3, 2024 15:20
@ctrlc03 ctrlc03 merged commit ea9903a into dev Jan 3, 2024
8 checks passed
@ctrlc03 ctrlc03 deleted the deps/ffjavascript branch January 3, 2024 15:21
@ctrlc03 ctrlc03 mentioned this pull request Jan 9, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Enforce maci private key length to specific size
2 participants