Skip to main content

domainDigest

HardKAS SDK


HardKAS SDK / artifacts/src / domainDigest

Function: domainDigest()

domainDigest(value, version?): string

Defined in: packages/artifacts/src/domain-digest.ts:33

SHA-256 of the unexcluded canonical form of value. Version 1 is the only current algorithm; the function is versioned so a future change is explicit in every caller.

Parameters​

value​

unknown

version?​

number = CURRENT_DOMAIN_DIGEST_VERSION

Returns​

string