preAuthTxHash method

XdrSignerKey preAuthTxHash (
  1. Uint8List hash
)

Create preAuthTx XdrSignerKey from a transaction hash.

Implementation

static XdrSignerKey preAuthTxHash(Uint8List hash) {
  checkNotNull(hash, "hash cannot be null");
  XdrSignerKey signerKey = new XdrSignerKey();
  XdrUint256 value = SignerKey._createUint256(hash);

  signerKey.discriminant = XdrSignerKeyType.SIGNER_KEY_TYPE_PRE_AUTH_TX;
  signerKey.preAuthTx = value;

  return signerKey;
}