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
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>
Returns Promise<string>
hashSiblingHashes: ((hashA: string, hashB: string) => Promise<string>)
- (hashA, hashB): Promise<string>
Parameters
- hashA: string
- hashB: string
Returns Promise<string>
hashString: ((message: string, algo?: HashAlgorithm) => Promise<string>)
- (message, algo?): Promise<string>
Returns Promise<string>
isValidHash: ((hash: string, algo?: HashAlgorithm) => boolean)
- (hash, algo?): boolean
Returns boolean
Solana: typeof Solana
Xrp: typeof Xrp
Hash a file and return the base64 encoded hash