sha256Hash static method
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;
}