sign method

String sign(
  1. BigInt messageHash
)

Implementation

String sign(BigInt messageHash) {
  CircomLib circomLib = CircomLib();
  String signature =
      circomLib.signPoseidon(bytesToHex(this.sk), messageHash.toString());
  return signature;
}