@musical-palm-tree/tokens
v1.0.4
Published
```js (async () => { let pair = await crypto.subtle.generateKey({ name: 'ECDSA', namedCurve: 'P-384' }, true, [ 'sign', 'verify' ]);
Downloads
6
Readme
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))
});
})();