sign method

void sign(
  1. String privateKey
)

Implementation

void sign(String privateKey) {
  if (keyIsValid(privateKey)) {
    final aux = getRandomHexString();
    sig = schnorr.sign(privateKey, id, aux);
  }
}