0.7.0-unstable.82 • Published 5 months ago

@transmute/web-crypto-key-pair v0.7.0-unstable.82

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

@transmute/web-crypto-key-pair

npm i @transmute/web-crypto-key-pair@latest --save

Linked Data Key Pair support for Web Crypto.

import * as web from '@transmute/web-crypto-key-pair';
const key = await web.KeyPair.generate({ kty: 'EC', crvOrSize: 'P-384' });
const signer = await key.signer();
const verifier = await key.verifier();
const signature = await signer.sign({
  data: Buffer.from('hello'),
});
const verified = await verifier.verify({
  data: Buffer.from('hello'),
  signature,
});
const remote = await key.export({
  type: 'JsonWebKey2020',
  privateKey: false,
});
const bits = await key.deriveBits(remote);
0.7.0-unstable.82

5 months ago

0.7.0-unstable.81

11 months ago

0.7.0-unstable.9

3 years ago

0.7.0-unstable.8

3 years ago

0.7.0-unstable.7

3 years ago

0.7.0-unstable.6

3 years ago

0.7.0-unstable.5

3 years ago

0.7.0-unstable.4

3 years ago

0.7.0-unstable.3

3 years ago

0.7.0-unstable.2

3 years ago

0.7.0-unstable.1

3 years ago

0.7.0-unstable.0

3 years ago

0.0.4-unstable.9

3 years ago

0.0.4-unstable.8

3 years ago