sha256Hash static method

XdrSignerKey sha256Hash(
  1. Uint8List hash
)

Create sha256Hash XdrSignerKey from a sha256 hash of a preimage.

Implementation

static XdrSignerKey sha256Hash(Uint8List hash) {
  XdrSignerKey signerKey =
      new XdrSignerKey(XdrSignerKeyType.SIGNER_KEY_TYPE_HASH_X);
  XdrUint256 value = SignerKey._createUint256(hash);
  signerKey.hashX = value;
  return signerKey;
}