navio-blsct
Version:
TypeScript bindings for the `libblsct` library used by the [Navio](https://nav.io/) blockchain to construct confidential transactions based on the BLS12-381 curve.
23 lines (22 loc) • 811 B
TypeScript
import { BlsctRetVal } from './blsct';
import util from 'util';
export type FinalizerInfo = {
cls: string;
obj: any;
isBorrow: boolean;
};
export declare abstract class ManagedObj {
protected obj: any;
protected objSize: number;
protected fi: FinalizerInfo;
constructor(obj: any);
abstract value(): any;
size(): number;
move(): any;
static fromObj<T extends ManagedObj>(this: new (obj: any, objSize?: number) => T, obj: any): T;
static fromObjAndSize<T extends ManagedObj>(this: new (obj: any) => T, obj: any, objSize: number): T;
toString(): string;
[util.inspect.custom](): string;
serialize(): string;
protected static _deserialize<T extends ManagedObj>(this: new (obj: any) => T, hex: string, deserializer: (hex: string) => BlsctRetVal): T;
}