/** * Used to constrain witness to specified scope * The execution in vm of a script is kind of opaque, user could add scope on his signature to avoid abuse of signature */ export declare enum WitnessScope { None = 0, /** * CalledByEntry means that this condition must hold: EntryScriptHash == CallingScriptHash * No params is needed, as the witness/permission/signature given on first invocation will automatically expire if entering deeper internal invokes * This can be default safe choice for native NEO/GAS (previously used on Neo 2 as "attach" mode) */ CalledByEntry = 1, /** * Custom hash for contract-specific */ CustomContracts = 16, /** * Custom pubkey for group members, group can be found in contract manifest */ CustomGroups = 32, /** * Custom rules for witness to adhere by. */ WitnessRules = 64, /** * Global allows this witness in all contexts (default Neo2 behavior) * This cannot be combined with other flags */ Global = 128 } export declare function parse(stringFlags: string): WitnessScope; export declare function toString(flags: WitnessScope): string; //# sourceMappingURL=WitnessScope.d.ts.map