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) • 956 B
TypeScript
/** The result of recovering a single amount from a non-aggregated range proof.
* Refer to `RangeProof` for a usage example.
*/
export declare class AmountRecoveryRes {
isSucc: boolean;
amount: number;
msg: string;
/** Constructs a new `AmountRecoveryRes` instance.
* @param isSucc - Indicates whether the recovery was successful.
* @param amount - The recovered amount.
* @param msg - The recovered message.
*/
constructor(isSucc: boolean, amount: number, msg: string);
/** Returns a string representation of the `AmountRecoveryRes`.
* @returns a string representation of the `AmountRecoveryRes`.
*/
toString(): string;
serialize(): string;
/** Deserializes a hexadecimal string into an `AmountRecoveryRes` instance.
* @param hex - The hexadecimal string to deserialize.
* @returns An instance of `AmountRecoveryRes`.
*/
deserialize(hex: string): AmountRecoveryRes;
}