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

feat: new package - bls verify #628

Merged
merged 5 commits into from Sep 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 11 additions & 2 deletions docs/generated/changelog.html
Expand Up @@ -12,15 +12,24 @@ <h1>Agent-JS Changelog</h1>
<section>
<h2>Version 0.13.3</h2>
<ul>
<li>
New package: @dfinity/bls-verify. This package provides a pure-js implementation of BLS
verification using the miracl-core package. This can be used to polyfill BLS verification
for agent-js, but it is notably very slow (~3s per verification). Optimization may be
possible with a significant refactoring
</li>
<li>adds ability to polyfill bls verification in Certificate</li>
<li>
Auth Client moves key fallback generation to the create method instead of login and makes
the _key non-nullable. This fixes a regression with async window.open behavior in Safari
</li>
<li>
HttpAgent now offers a method to sync time with the replica, provided a specific canister.
This can be used to set proper Expiry times when a device has fallen out of sync with the replica.
HttpAgent now offers a method to sync time with the replica, provided a specific canister.
This can be used to set proper Expiry times when a device has fallen out of sync with the
replica.
</li>
</ul>

<h2>Version 0.13.2</h2>
<ul>
<li>auth-client avoids localstorage global and can be used in a web worker or nodejs</li>
Expand Down
99 changes: 59 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -8,6 +8,7 @@
"packages/principal",
"packages/candid",
"packages/agent",
"packages/bls-verify",
"packages/identity",
"packages/identity-ledgerhq",
"packages/authentication",
Expand Down
1 change: 1 addition & 0 deletions packages/bls-verify/.eslintignore
@@ -0,0 +1 @@
**/*.js
19 changes: 19 additions & 0 deletions packages/bls-verify/.gitignore
@@ -0,0 +1,19 @@
build_info.json
node_modules/
dist/

**/*.js.map
**/*.d.ts

# generated docs
/docs/reference

# Cannot ignore .d.ts files in types/
!types/**/*.d.ts

# Cannot ignore setup files for webpack and jest, which are still JavaScript.
!webpack.config.js
!jest.config.js
!test-setup.js

lib/**
11 changes: 11 additions & 0 deletions packages/bls-verify/.npmignore
@@ -0,0 +1,11 @@
# We work with a safelist here, so block everything that's not permitted, and add packages
# that are.
**

!lib/**
!types/**/*.d.ts
!package.json
!README.md

# The following line further removes all test files (which matches .js and .d.ts).
lib/**/*.test.*