implemented frontend including separate message system; started to implement backend
This commit is contained in:
15
yjs-poll/node_modules/lib0/bin/0ecdsa-generate-keypair.js
generated
vendored
Normal file
15
yjs-poll/node_modules/lib0/bin/0ecdsa-generate-keypair.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env node
|
||||
import * as ecdsa from 'lib0/crypto/ecdsa'
|
||||
import * as json from 'lib0/json'
|
||||
import * as env from 'lib0/environment'
|
||||
|
||||
const prefix = env.getConf('name')
|
||||
|
||||
const keypair = await ecdsa.generateKeyPair({ extractable: true })
|
||||
const privateJwk = json.stringify(await ecdsa.exportKeyJwk(keypair.privateKey))
|
||||
const publicJwk = json.stringify(await ecdsa.exportKeyJwk(keypair.publicKey))
|
||||
|
||||
console.log(`
|
||||
${prefix ? prefix.toUpperCase() + '_' : ''}PUBLIC_KEY=${publicJwk}
|
||||
${prefix ? prefix.toUpperCase() + '_' : ''}PRIVATE_KEY=${privateJwk}
|
||||
`)
|
||||
Reference in New Issue
Block a user