UNPKG

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.

25 lines (24 loc) 998 B
import { Point } from './point'; import { RangeProof } from './rangeProof'; /** A request for recovering a single amount from a non-aggregated range proof. * Refer to `RangeProof` for a usage example. */ export declare class AmountRecoveryReq { rangeProof: RangeProof; nonce: Point; /** Constructs a new `AmountRecoveryReq` instance. * @param rangeProof - The range proof to recover the amount from. * @param nonce - The nonce used to generate the range proof. */ constructor(rangeProof: RangeProof, nonce: Point); /** Returns a string representation of the `AmountRecoveryReq`. * @returns a string representation of the `AmountRecoveryReq`. */ toString(): string; serialize(): string; /** Deserializes a hexadecimal string into an `AmountRecoveryReq` instance. * @param hex - The hexadecimal string to deserialize. * @returns An instance of `AmountRecoveryReq`. */ static deserialize(hex: string): AmountRecoveryReq; }