@provablehq/sdk
Version:
A Software Development Kit (SDK) for Zero-Knowledge Transactions
18 lines (17 loc) • 545 B
TypeScript
/**
* Aleo function Input represented as a typed typescript object.
*/
import { Field, Ciphertext, Plaintext } from "../../wasm.js";
import { PlaintextObject } from "../plaintext/plaintext.js";
/**
* Object representation of an Input as raw JSON returned from a SnarkOS node.
*/
export interface OutputObject {
type: string;
id: string | Field;
value?: Ciphertext | Plaintext | PlaintextObject;
checksum?: string | Field;
program?: string;
function?: string;
arguments?: Array<Plaintext> | Array<OutputObject>;
}