UNPKG

@dfinity/agent

Version:

JavaScript and TypeScript library to interact with the Internet Computer

24 lines 881 B
export type RequestId = Uint8Array & { __requestId__: void; }; /** * * @param value unknown value * @returns Uint8Array */ export declare function hashValue(value: unknown): Uint8Array; /** * Get the RequestId of the provided ic-ref request. * RequestId is the result of the representation-independent-hash function. * https://sdk.dfinity.org/docs/interface-spec/index.html#hash-of-map * @param request - ic-ref request to hash into RequestId */ export declare function requestIdOf(request: Record<string, unknown>): RequestId; /** * Hash a map into a Uint8Array using the representation-independent-hash function. * https://sdk.dfinity.org/docs/interface-spec/index.html#hash-of-map * @param map - Any non-nested object * @returns Uint8Array */ export declare function hashOfMap(map: Record<string, unknown>): Uint8Array; //# sourceMappingURL=request_id.d.ts.map