new Signer(cryptoSuite, key)
||module:api.CryptoSuite||The underlying CryptoSuite implementation for the digital signature algorithm|
||module:api.Key||The private key|
Returns the public key corresponding to the opaque, private key
Returns:The public key corresponding to the private key
Signs digest with the private key. Hash implements the SignerOpts interface and, in most cases, one can simply pass in the hash function used as opts. Sign may also attempt to type assert opts to other types in order to obtain algorithm specific values. Note that when a signature of a hash of a larger message is needed, the caller is responsible for hashing the larger message and passing the hash (as digest) to Sign.
Name Type Description
Array.<byte> The message to sign