UNPKG

@zkthings/e2e-encryption-secp256k1

Version:

End-to-end encryption using secp256k1 keys (compatible with EVM wallets)

17 lines (14 loc) 360 B
class BaseE2E { constructor() { if (this.constructor === BaseE2E) { throw new Error("Can't instantiate abstract base class!"); } } async encrypt(data) { throw new Error('Method encrypt() must be implemented'); } async decrypt(params) { throw new Error('Method decrypt() must be implemented'); } } module.exports = BaseE2E;