• Produces salted hashes of individual statements comprising a (partial) IClaim to enable selective disclosure of contents. Can also be used to reproduce hashes for the purpose of validation.

    Returns

    An array of salted hashes and a nonceMap where keys correspond to unsalted statement hashes.

    Parameters

    • claim: PartialClaim

      Full or partial IClaim to produce statement hashes from.

    • options: HashingOptions & {
          canonicalisation?: ((claim: PartialClaim) => string[]);
      } = {}

      Object containing optional parameters.

    Returns {
        hashes: HexString[];
        nonceMap: Record<string, string>;
    }

    • hashes: HexString[]
    • nonceMap: Record<string, string>