sign method

void sign(
  1. String privateKey
)

sign the event with given privateKey WARN only for testing! Use EventSigner to sign events in production

Implementation

void sign(String privateKey) {
  sig = Bip340.sign(id, privateKey);
}