originSign method
Sign the transaction with an origin private key
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)),
);
}