@mysten/sui
Version:
Sui TypeScript API
11 lines (10 loc) • 757 B
text/typescript
import { PublicKey } from "../cryptography/publickey.mjs";
//#region src/zklogin/utils.d.ts
declare function toPaddedBigEndianBytes(num: bigint, width: number): Uint8Array;
declare function toBigEndianBytes(num: bigint, width: number): Uint8Array;
declare function getExtendedEphemeralPublicKey(publicKey: PublicKey): string;
declare function hashASCIIStrToField(str: string, maxSize: number): bigint;
declare function genAddressSeed(salt: string | bigint, name: string, value: string, aud: string, max_name_length?: number, max_value_length?: number, max_aud_length?: number): bigint;
//#endregion
export { genAddressSeed, getExtendedEphemeralPublicKey, hashASCIIStrToField, toBigEndianBytes, toPaddedBigEndianBytes };
//# sourceMappingURL=utils.d.mts.map