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.

20 lines (19 loc) 775 B
import { ManagedObj } from './managedObj'; import { SpendingKey } from './keys/childKeyDesc/txKeyDesc/spendingKey'; import { TokenId } from './tokenId'; import { OutPoint } from './outPoint'; export declare class TxIn extends ManagedObj { constructor(obj: any); static generate(amount: number, gamma: number, spendingKey: SpendingKey, tokenId: TokenId, outPoint: OutPoint, isStakedCommitment?: boolean, isRbf?: boolean): TxIn; value(): any; getAmount(): number; getGamma(): number; getSpendingKey(): SpendingKey; getTokenId(): TokenId; getOutPoint(): OutPoint; getIsStakedCommitment(): boolean; getIsRbf(): boolean; clone(): TxIn; serialize(): string; static deserialize(this: new (obj: any) => TxIn, hex: string): TxIn; }