Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
hash: (obj) =>
message.magicHash(Encoder.encode(obj), networks.bitcoin).toString('hex'),
sign: (keyPair, msg) =>
message.sign(keyPair, Encoder.encode(msg), networks.bitcoin).toString('base64'),