1.0.4 • Published 1 year ago

@musical-palm-tree/tokens v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Generate Key

(async () => {
  let pair = await crypto.subtle.generateKey({ name: 'ECDSA', namedCurve: 'P-384' }, true, [
    'sign',
    'verify'
  ]);

  console.log({
    privateKey: JSON.stringify(await crypto.subtle.exportKey('jwk', pair.privateKey)),
    publicKey: JSON.stringify(await crypto.subtle.exportKey('jwk', pair.publicKey))
  });
})();
1.0.2

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago