API Report File for "@kadena/cryptography-utils"
Do not edit this file. It is a report generated by API Extractor.
import type { IBase64Url } from '@kadena/types';
import type { IKeyPair } from '@kadena/types';
import { IUnsignedCommand } from '@kadena/types';
import type { SignCommand } from '@kadena/types';
// @alpha
export function base64UrlDecode(str: IBase64Url): string;
// @alpha
export function base64UrlDecodeArr(input: IBase64Url): Uint8Array;
// @alpha
export function base64UrlEncode(str: string): IBase64Url;
// @alpha
export function base64UrlEncodeArr(input: Uint8Array): IBase64Url;
// @alpha
export function binToHex(array: Uint8Array): string;
// @alpha
export function genKeyPair(): IKeyPair;
// @alpha
export function hash(str: string): string;
// @alpha
export function hashBin(str: string): Uint8Array;
// @alpha
export 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;
};
// @alpha (undocumented)
export const pactTestCommand1: IUnsignedCommand;
// @alpha (undocumented)
export const pactTestCommand2: IUnsignedCommand;
// @alpha
export function restoreKeyPairFromSecretKey(seed: string): IKeyPair;
// @alpha
export function sign(msg: string, { secretKey, publicKey }: IKeyPair): SignCommand;
// @alpha
export function signHash(hash: string, { secretKey, publicKey }: IKeyPair): SignCommand;
// @alpha
export function strToUint8Array(str: string): Uint8Array;
// @alpha
export function toTweetNaclSecretKey({ secretKey, publicKey, }: IKeyPair): Uint8Array;
// @alpha
export function uint8ArrayToStr(array: Uint8Array): string;
// @alpha
export function unique(array: Array<string>): Array<string>;
// @alpha
export function verifySig(msg: Uint8Array, sig: Uint8Array, pubKey: Uint8Array): boolean;
// (No @packageDocumentation comment for this package)
import type { IBase64Url } from '@kadena/types';
import type { IKeyPair } from '@kadena/types';
import { IUnsignedCommand } from '@kadena/types';
import type { SignCommand } from '@kadena/types';
// @alpha
export function base64UrlDecode(str: IBase64Url): string;
// @alpha
export function base64UrlDecodeArr(input: IBase64Url): Uint8Array;
// @alpha
export function base64UrlEncode(str: string): IBase64Url;
// @alpha
export function base64UrlEncodeArr(input: Uint8Array): IBase64Url;
// @alpha
export function binToHex(array: Uint8Array): string;
// @alpha
export function genKeyPair(): IKeyPair;
// @alpha
export function hash(str: string): string;
// @alpha
export function hashBin(str: string): Uint8Array;
// @alpha
export 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;
};
// @alpha (undocumented)
export const pactTestCommand1: IUnsignedCommand;
// @alpha (undocumented)
export const pactTestCommand2: IUnsignedCommand;
// @alpha
export function restoreKeyPairFromSecretKey(seed: string): IKeyPair;
// @alpha
export function sign(msg: string, { secretKey, publicKey }: IKeyPair): SignCommand;
// @alpha
export function signHash(hash: string, { secretKey, publicKey }: IKeyPair): SignCommand;
// @alpha
export function strToUint8Array(str: string): Uint8Array;
// @alpha
export function toTweetNaclSecretKey({ secretKey, publicKey, }: IKeyPair): Uint8Array;
// @alpha
export function uint8ArrayToStr(array: Uint8Array): string;
// @alpha
export function unique(array: Array<string>): Array<string>;
// @alpha
export function verifySig(msg: Uint8Array, sig: Uint8Array, pubKey: Uint8Array): boolean;
// (No @packageDocumentation comment for this package)