setPreviousSignatureAndPreviousPublicKey method

Transaction setPreviousSignatureAndPreviousPublicKey(
  1. String prevSign,
  2. String prevPubKey
)

Set the transaction builder with Previous Publickey and Previous Signature @param {String} to Previous Signature (hexadecimal) @param {String} to Previous PublicKey (hexadecimal)

Implementation

Transaction setPreviousSignatureAndPreviousPublicKey(
  String prevSign,
  String prevPubKey,
) {
  if (!isHex(prevSign)) {
    throw const FormatException("'prevSign' must be an hexadecimal string");
  }

  if (!isHex(prevPubKey)) {
    throw const FormatException("'prevPubKey' must be an hexadecimal string");
  }
  return copyWith(previousSignature: prevSign, previousPublicKey: prevPubKey);
}