Repository navigation
Releases
Releases · jose-compu/libvrf-js
v1.1.1
What's Changed
- Bump jest from 29.7.0 to 30.4.2 by @dependabot[bot] in #49
New Contributors
- @dependabot[bot] made their first contribution in #49
Full Changelog: v1.1.0...v1.1.1
v1.1.0
Changelog
All notable changes to this project are documented in this file.
[1.1.0] - 2026-05-19
Added
isRFC9381Compliant()andgetVRFSuiteInfo()for suite metadataVRFError,VRFErrorCode, and*OrThrowAPIs onVRF- RFC 9381 RSA-FDH cross-vector tests (Microsoft libvrf fixtures)
VRF.createRsaFromPrimes()for test vectors and trusted key importVRF.secretKeyToBytes()/VRF.secretKeyFromBytes()(treat output as secret)- Browser CI smoke test (
npm run test:browser-smoke) npm run test:fullfor slow RSA 3072/4096 matrixnpm run benchmarkfor prove/verify timing- Dependabot configuration
Fixed
- RSA-FDH/PSS aligned with Microsoft libvrf (suite strings, MGF1 salt, RFC 9381 TBS)
- RSA public key import (
components-publicfor MGF1 salt) - Honest README and package description (EC VRF not RFC 9381 interoperable)
Changed
- Default
npm testuses a fast matrix (2048 RSA + EC); full matrix is optional
v1.0.5
Node.js 18.x Compatibility Fixes
- Fixed ESLint errors for Node.js 18.x compatibility:
- Replaced
@ts-ignorewith@ts-expect-errorinsrc/ec/ecvrf.ts(line 150) - Replaced
require('crypto')with proper ES6 import statement (line 162) - Fixed
anytype warnings insrc/ec/ecdh-wrapper.ts(lines 110, 173) with proper eslint-disable comments - Fixed
anytype warning insrc/ec/ecvrf.ts(line 325) with proper eslint-disable comment - Added
@ts-expect-errordirective for unused private methodinitializeSync(line 152)
- Replaced
All tests passing (46 tests). Linting clean.
v1.0.4
Release v1.0.4 - Browser Support for EC VRF
New Features
- ✅ EC VRF now works in browsers using WebCrypto API
- ✅ Async APIs for browser: createAsync(), getPublicKeyAsync(), getVRFProofAsync(), verifyVRFProofAsync()
- ✅ Node.js backward compatibility maintained with sync APIs
- ✅ All 46 tests passing
Changes
- Added WebCrypto API support for EC VRF operations
- Created ECDH wrapper for browser compatibility
- Added hashAsync() function for WebCrypto hashing
- Updated README with browser usage examples
Browser Support
- EC VRF (EC_VRF_P256_SHA256_TAI) now works in browsers
- RSA VRFs still require Node.js (node-rsa dependency)
- Browser bundle: 112KB minified
v1.0.3
Release v1.0.3 - Fix browser build: Added Buffer polyfill to webpack config to fix 'Buffer is not defined' error in browsers. Browser bundle now works correctly with EC VRF.
v1.0.2
Release v1.0.2 - Cleaned dependencies: Removed unused @noble/curves and @noble/hashes packages. Only node-rsa remains as a runtime dependency.
v1.0.1
Release v1.0.1 - Test release with browser build and automated NPM publishing