zenroom
Version:
wrapper of Zenroom, a secure and small virtual machine for crypto language processing
28 lines (27 loc) • 1.44 kB
TypeScript
type ZenroomProps = {
data?: string | null;
keys?: string | null;
conf?: string | null;
extra?: string | null;
context?: string | null;
};
type ZenroomResult = {
result: string;
logs: string;
};
export declare const zencode_exec: (zencode: string, props?: ZenroomProps) => Promise<ZenroomResult>;
export declare const zenroom_exec: (lua: string, props?: ZenroomProps) => Promise<ZenroomResult>;
export declare const zenroom_hash_init: (hash_type: string) => Promise<ZenroomResult>;
export declare const zenroom_hash_update: (hash_ctx: string, buffer: string) => Promise<ZenroomResult>;
export declare const zenroom_hash_final: (hash_ctx: string) => Promise<ZenroomResult>;
export declare const zenroom_hash: (hash_type: string, ab: string) => Promise<ZenroomResult>;
export declare const zencode_valid_input: (zencode: string, props?: ZenroomProps) => Promise<ZenroomResult>;
export declare const introspect: (zencode: string, props?: ZenroomProps) => Promise<any>;
export declare const zencode_valid_code: (zencode: string, conf?: string | null, strict?: number) => Promise<ZenroomResult>;
export declare const safe_zencode_valid_code: (zencode: string, conf?: string | null) => Promise<ZenroomResult>;
export declare const decode_error: (err: {
result: string;
logs: string;
}) => string;
export declare const zencode_get_statements: (scenario?: string | null) => Promise<ZenroomResult>;
export {};