setOriginSignature method

Transaction setOriginSignature(
  1. String originSignature
)

Set the the transaction with an origin private key

Implementation

Transaction setOriginSignature(String originSignature) {
  if (!isHex(originSignature)) {
    throw const FormatException(
      "'originSignature' must be an hexadecimal string",
    );
  }
  return copyWith(originSignature: originSignature);
}