code: function(privKey) {
        validatePrivKey(privKey);
        var raw_keys = curve25519.keyPair(privKey);
        if (raw_keys instanceof Promise) {
          return raw_keys.then(processKeys);
        } else {
          return processKeys(raw_keys);
        }
      }
docs: Curve 25519 crypto