Skip to content

Make everything synchronous#4

Open
poeck wants to merge 1 commit into
shuding:mainfrom
blinkdisk:make-it-sync
Open

Make everything synchronous#4
poeck wants to merge 1 commit into
shuding:mainfrom
blinkdisk:make-it-sync

Conversation

@poeck

@poeck poeck commented Jan 11, 2026

Copy link
Copy Markdown

This PR converts createId and verifyId from async to synchronous functions by replacing crypto.subtle with the js-sha1 package.

Changes

  • createId() and verifyId() are now synchronous
  • Replaced crypto.subtle.digest() with js-sha1 for synchronous SHA-1 hashing
  • Removed unused arrayBufferToHex helper function
  • Updated all test cases to use synchronous API calls
  • Updated README.md examples to reflect synchronous usage

Closes #2

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.

feature request: sync API

1 participant