js-libp2p-crypto/src/keys/ephemeral-keys.js

12 lines
316 B
JavaScript
Raw Normal View History

'use strict'
2017-07-22 10:57:27 -07:00
const ecdh = require('./ecdh')
// Generates an ephemeral public key and returns a function that will compute
// the shared secret key.
//
// Focuses only on ECDH now, but can be made more general in the future.
module.exports = (curve, callback) => {
2017-07-22 10:57:27 -07:00
ecdh.generateEphmeralKeyPair(curve, callback)
}