Sign bytes
The signed bytes
import { magicBytes as magicBytesMap } from 'sotez';cryptoUtils.sign(opbytes, keys.sk, magicBytesMap.generic) .then(({ bytes, magicBytes, sig, prefixSig, sbytes }) => console.log(bytes, magicBytes, sig, prefixSig, sbytes));
The bytes to sign
The secret key to sign the bytes with
Optional
The magic bytes for the operation
The password used to encrypt the sk
Generated using TypeDoc
Description
Sign bytes
Returns
The signed bytes
Example