@ar.io/sdk
Version:
[](https://codecov.io/gh/ar-io/ar-io-sdk)
5 lines (4 loc) • 340 B
TypeScript
import { Readable } from 'stream';
export declare const hashReadableToB64Url: (stream: Readable, algorithm?: string) => Promise<string>;
export declare const hashReadableStreamToB64Url: (stream: ReadableStream, algorithm?: string) => Promise<string>;
export declare const hashBufferToB64Url: (buffer: Buffer, algorithm?: string) => string;