mattrglobal / bls12381-key-pair

A library for using BLS 12-381 key pairs
Apache License 2.0
15 stars 10 forks source link

feat: update to use bbs-signatures #21

Closed tplooker closed 4 years ago

tplooker commented 4 years ago

Description

Updates this libraries core dependency to be on bbs-signatures which is WASM based meaning this library is now browser compatible. Note bbs-signatures has an optional dependency on node-bbs-signatures so that consumers of this library running in node environments can take advantage of the node module for the best performance.

The changes include

Motivation and Context

Supporting more of the TS and JS environment

Does this PR introduce a breaking change?

Sign and verify functions now expect the data as Uint8Array's instead of strings

Which merge strategy will you use?

github-actions[bot] commented 4 years ago

Total Coverage: 97.22%

Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   Bls12381G2KeyPair.ts89.47%94.44%97.18%105, 106, 108, 180, 248, 255
   index.ts100%100%100%