originSign method

Transaction originSign(
  1. String privateKey
)

Sign the transaction with an origin private key @param {String} originPv Origin Private Key (hexadecimal)

Implementation

Transaction originSign(String privateKey) {
  if (!isHex(privateKey)) {
    throw const FormatException("'privateKey' must be an hexadecimal string");
  }
  return copyWith(
    originSignature:
        uint8ListToHex(crypto.sign(originSignaturePayload(), privateKey)),
  );
}