util: {
    CertificateHelper: typeof CertificateHelper;
    hash: {
        hashFile: ((file: File, algo?: HashAlgorithm) => Promise<string>);
        hashSiblingHashes: ((hashA: string, hashB: string) => Promise<string>);
        hashString: ((message: string, algo?: HashAlgorithm) => Promise<string>);
        isValidHash: ((hash: string, algo?: HashAlgorithm) => boolean);
    };
    Solana: typeof Solana;
    time: util/time;
    Xrp: typeof Xrp;
} = ...

Type declaration

  • CertificateHelper: typeof CertificateHelper
  • hash: {
        hashFile: ((file: File, algo?: HashAlgorithm) => Promise<string>);
        hashSiblingHashes: ((hashA: string, hashB: string) => Promise<string>);
        hashString: ((message: string, algo?: HashAlgorithm) => Promise<string>);
        isValidHash: ((hash: string, algo?: HashAlgorithm) => boolean);
    }
    • hashFile: ((file: File, algo?: HashAlgorithm) => Promise<string>)
        • (file, algo?): Promise<string>
        • Hash a file and return the base64 encoded hash

          Parameters

          Returns Promise<string>

    • hashSiblingHashes: ((hashA: string, hashB: string) => Promise<string>)
        • (hashA, hashB): Promise<string>
        • Hash two hashes on the same level in the merkle tree, to result in the parent hash

          Parameters

          • hashA: string
          • hashB: string

          Returns Promise<string>

    • hashString: ((message: string, algo?: HashAlgorithm) => Promise<string>)
        • (message, algo?): Promise<string>
        • Hash text string and return base64 hash

          Parameters

          Returns Promise<string>

    • isValidHash: ((hash: string, algo?: HashAlgorithm) => boolean)
        • (hash, algo?): boolean
        • Check the length of a base64 encoded hash

          Parameters

          Returns boolean

  • Solana: typeof Solana
  • time: util/time
  • Xrp: typeof Xrp