Skip to content

Commit

Permalink
feat: new package - bls verify (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock committed Sep 9, 2022
1 parent 913c3e7 commit 5214dc1
Show file tree
Hide file tree
Showing 59 changed files with 30,094 additions and 42 deletions.
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.*

0 comments on commit 5214dc1

Please sign in to comment.