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.
24 lines (23 loc) • 890 B
TypeScript
import { AmountRecoveryReq } from './amountRecoveryReq';
import { AmountRecoveryRes } from './amountRecoveryRes';
import { ManagedObj } from './managedObj';
import { Point } from './point';
import { Scalar } from './scalar';
import { TokenId } from './tokenId';
export declare class RangeProof extends ManagedObj {
constructor(obj: any);
static generate(amounts: number[], nonce: Point, msg: string, tokenId?: TokenId): RangeProof;
verifyProofs(proofs: RangeProof[]): boolean;
recoverAmounts(reqs: AmountRecoveryReq[]): AmountRecoveryRes[];
value(): any;
serialize(): string;
static deserialize(this: new (obj: any) => RangeProof, hex: string): RangeProof;
get_A(): Point;
get_A_wip(): Point;
get_B(): Point;
get_r_prime(): Scalar;
get_s_prime(): Scalar;
get_delta_prime(): Scalar;
get_alpha_hat(): Scalar;
get_t_aux(): Scalar;
}