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

token shared lib: Implement missing functions #5

Merged
merged 3 commits into from
May 29, 2024
Merged

token shared lib: Implement missing functions #5

merged 3 commits into from
May 29, 2024

Conversation

beesaferoot
Copy link
Collaborator

Implement missing features in shared library needed to get encoder/decoder to function properly. Also fix the accuracy issue with siphash lib by using hex values.

Majority of test cases are now passing for encoder/decoder modules, still need to fix failing cases; convertToNdigitToken seems broken or needs to be modified to work properly.

Implement missing features in shared library needed to get
encoder/decoder to function properly. Also fix the accuracy issue with
siphash lib by using hex values.
@beesaferoot beesaferoot requested a review from dmohns May 28, 2024 21:40
@beesaferoot beesaferoot self-assigned this May 28, 2024
Copy link
Member

@dmohns dmohns left a comment

Choose a reason for hiding this comment

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

Looks good, left one comment

lib/siphash.js Outdated
/*
Copy link
Member

Choose a reason for hiding this comment

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

Instead of copy/pasting the source code here, could you pull this as an npm dependency? If I'm not mistaken it's this one: https://www.npmjs.com/package/siphash

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's the one, sure I could make it happen.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated, please have a look.

Copy link
Member

@dmohns dmohns left a comment

Choose a reason for hiding this comment

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

Thanks :shipit:

@beesaferoot beesaferoot merged commit eaae921 into main May 29, 2024
1 check failed
@beesaferoot beesaferoot deleted the js-port branch May 29, 2024 10:05
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.

2 participants