Module: bip70/pk

Methods

(private, static) _verify(hash, msg, sig, key) → {Boolean}

Verify signature with public key.

Parameters:
Name Type Description
hash String

Hash algorithm.

msg Buffer
sig Buffer
key Object
Source:
Returns:
Type
Boolean

(static) sign(hash, msg, key) → {Buffer}

Sign message with private key.

Parameters:
Name Type Description
hash String

Hash algorithm.

msg Buffer
key Object
Source:
Returns:
Type
Buffer

(static) verify(hash, msg, sig, key) → {Boolean}

Verify signature with public key.

Parameters:
Name Type Description
hash String

Hash algorithm.

msg Buffer
sig Buffer
key Object
Source:
Returns:
Type
Boolean