UNPKG

@dashevo/wallet-lib

Version:
16 lines (14 loc) 288 B
const cbor = require('cbor'); /** * Allow to canonical encode an input * Useful for encryption. * @param method * @param data */ const encode = function encode(method, data) { switch (method) { default: return cbor.encodeCanonical(data); } }; module.exports = encode;