@transmute/did-key-p384
TypeScript icon, indicating that this package has built-in type declarations

0.2.1-unstable.20 • Public • Published

@transmute/did-key-p384

DEPRECATED.

Please use @transmute/did-key-web-crypto instead.

npm i @transmute/did-key-p384@latest --save

Usage

import { P384KeyPair } from '@transmute/did-key-p384';
const key = await P384KeyPair.generate();
const key = await P384KeyPair.from({
  privateKeyJwk: fixtures.privateKeyJwk,
});
const signer = key.signer();
const signature = await signer.sign({ data: fixtures.message });
const verifier = key.verifier();
const verified = await verifier.verify({ data: fixtures.message, signature });
expect(verified).toBe(true);
const secret = await key.deriveSecret({ publicKey });
// expect secret to be equivalent to web crypto deriveBits.

TODO

  • More documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i @transmute/did-key-p384

Weekly Downloads

6

Version

0.2.1-unstable.20

License

Apache-2.0

Unpacked Size

164 kB

Total Files

47

Last publish

Collaborators

  • ipbyrne
  • or13
  • transmute-ci