Skip to main content
Last updated

API Report File for "@kadena/cryptography-utils"

Do not edit this file. It is a report generated by API Extractor.

ts
 import type { IBase64Url } from '@kadena/types';import type { IKeyPair } from '@kadena/types';import type { SignCommand } from '@kadena/types'; // @alphaexport function base64UrlDecode(str: IBase64Url): string; // @alphaexport function base64UrlDecodeArr(input: IBase64Url): Uint8Array; // @alphaexport function base64UrlEncode(str: string): IBase64Url; // @alphaexport function base64UrlEncodeArr(input: Uint8Array): IBase64Url; // @alphaexport function binToHex(array: Uint8Array): string; // @alphaexport function genKeyPair(): IKeyPair; // @alphaexport function hash(str: string): string; // @alphaexport function hashBin(str: string): Uint8Array; // @alphaexport function hexToBin(hexString: string): Uint8Array; // @alpha (undocumented)export const pactTestCommand: {    networkId: undefined | unknown;    payload: {        exec: {            data: {                'accounts-admin-keyset': string[];            };            code: string;        };    };    signers: {        pubKey: string;    }[];    meta: {        creationTime: number;        ttl: number;        gasLimit: number;        chainId: string;        gasPrice: number;        sender: string;    };    nonce: string;}; // @alphaexport function restoreKeyPairFromSecretKey(seed: string): IKeyPair; // @alphaexport function sign(msg: string, { secretKey, publicKey }: IKeyPair): SignCommand; // @alphaexport function signHash(hash: string, { secretKey, publicKey }: IKeyPair): SignCommand; // @alphaexport function strToUint8Array(str: string): Uint8Array; // @alphaexport function toTweetNaclSecretKey({ secretKey, publicKey, }: IKeyPair): Uint8Array; // @alphaexport function uint8ArrayToStr(array: Uint8Array): string; // @alphaexport function verifySig(msg: Uint8Array, sig: Uint8Array, pubKey: Uint8Array): boolean; // (No @packageDocumentation comment for this package) 
ts
 import type { IBase64Url } from '@kadena/types';import type { IKeyPair } from '@kadena/types';import type { SignCommand } from '@kadena/types'; // @alphaexport function base64UrlDecode(str: IBase64Url): string; // @alphaexport function base64UrlDecodeArr(input: IBase64Url): Uint8Array; // @alphaexport function base64UrlEncode(str: string): IBase64Url; // @alphaexport function base64UrlEncodeArr(input: Uint8Array): IBase64Url; // @alphaexport function binToHex(array: Uint8Array): string; // @alphaexport function genKeyPair(): IKeyPair; // @alphaexport function hash(str: string): string; // @alphaexport function hashBin(str: string): Uint8Array; // @alphaexport function hexToBin(hexString: string): Uint8Array; // @alpha (undocumented)export const pactTestCommand: {    networkId: undefined | unknown;    payload: {        exec: {            data: {                'accounts-admin-keyset': string[];            };            code: string;        };    };    signers: {        pubKey: string;    }[];    meta: {        creationTime: number;        ttl: number;        gasLimit: number;        chainId: string;        gasPrice: number;        sender: string;    };    nonce: string;}; // @alphaexport function restoreKeyPairFromSecretKey(seed: string): IKeyPair; // @alphaexport function sign(msg: string, { secretKey, publicKey }: IKeyPair): SignCommand; // @alphaexport function signHash(hash: string, { secretKey, publicKey }: IKeyPair): SignCommand; // @alphaexport function strToUint8Array(str: string): Uint8Array; // @alphaexport function toTweetNaclSecretKey({ secretKey, publicKey, }: IKeyPair): Uint8Array; // @alphaexport function uint8ArrayToStr(array: Uint8Array): string; // @alphaexport function verifySig(msg: Uint8Array, sig: Uint8Array, pubKey: Uint8Array): boolean; // (No @packageDocumentation comment for this package)