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.
31 lines (30 loc) • 1 kB
TypeScript
import { Script } from './script';
import { CTxId } from './ctxId';
/** Represents a transaction input in a constructed confidential transaction. Also known as `CTxIn` on the C++ side.
*
* For code examples, see the `ctx.ts` class documentation.
*/
export declare class CTxIn {
private obj;
constructor(obj: any);
/** Returns the transaction ID of the previous output being spent.
* @returns The transaction ID of the previous output.
*/
getPrevOutHash(): CTxId;
/** Returns the index of the previous output being spent.
* @returns The index of the previous output.
*/
getPrevOutN(): number;
/** Returns the `scriptSig` of the input.
* @returns The `scriptSig`.
*/
getScriptSig(): Script;
/** Returns the sequence number of the input.
* @returns The sequence number.
*/
getSequence(): number;
/** Returns the `scriptWitness` of the input.
* @returns The `scriptWitness`.
*/
getScriptWitness(): Script;
}