sha256Hash method
- Uint8List hash
Create sha256Hash
XdrSignerKey from a sha256 hash
of a preimage.
Implementation
static XdrSignerKey sha256Hash(Uint8List hash) {
checkNotNull(hash, "hash cannot be null");
XdrSignerKey signerKey = new XdrSignerKey();
XdrUint256 value = SignerKey._createUint256(hash);
signerKey.discriminant = XdrSignerKeyType.SIGNER_KEY_TYPE_HASH_X;
signerKey.hashX = value;
return signerKey;
}