UNPKG

ethereum-encryption

Version:

Use this to encrypt, decrypt, sign and verify data with an ethereum public- or privateKey

20 lines (16 loc) 375 B
/** * copied from bitcore-ecies * https://github.com/bitpay/bitcore-ecies */ import { errors as bitcoreErrors } from 'bitcore-lib'; const spec = { name: 'ECIES', message: 'Internal Error on bitcore-ecies Module {0}', errors: [{ name: 'InvalidPadding', message: 'Invalid padding: {0}' }] }; export default bitcoreErrors.extend(spec);