o1js
Version:
TypeScript framework for zk-SNARKs and zkApps
18 lines (17 loc) • 501 B
TypeScript
export { PublicKey, Field, Bool, AuthRequired, UInt64, UInt32, Sign, BalanceChange, TokenId, MayUseToken, };
type Field = string;
type Bool = boolean;
type UInt64 = string;
type UInt32 = string;
type Sign = 'Positive' | 'Negative';
type BalanceChange = {
magnitude: UInt64;
sgn: Sign;
};
type PublicKey = string;
type AuthRequired = 'Signature' | 'Proof' | 'Either' | 'None' | 'Impossible';
type TokenId = Field;
type MayUseToken = {
parentsOwnToken: Bool;
inheritFromParent: Bool;
};