UNPKG

immudb-node

Version:

Node.js SDK for immudb written in TypeScript

31 lines (30 loc) 1.02 kB
import HTree from './htree'; import * as schemaTypes from './proto/schema_pb'; declare class TXe { hValue: Uint8Array; vOff: number; valueLen: number; key: Uint8Array; keyLen: number; constructor(hValue: Uint8Array, vOff: number, valueLen: number, key: Uint8Array); } export declare const digestTXe: ({ key, hValue }: Omit<TXe, 'vOff' | 'valueLen' | 'keyLen'>) => Uint8Array; export declare class Tx { id: number; entries: Array<TXe>; nEntries: number; htree: HTree; prevAlh: Uint8Array; ts: number; blTxId: number; blRoot: Uint8Array; innerHash: Uint8Array; alh: Uint8Array; constructor(entries: Array<TXe>, id: number | undefined, prevAlh: Uint8Array, ts: number, blTxId: number, blRoot: Uint8Array); private buildHashTree; private calcAlh; private calcInnerHash; } export declare const txFrom: (sTx: schemaTypes.Tx) => Tx; export declare const proofTx: (tx: Tx, key: Uint8Array) => schemaTypes.InclusionProof | undefined; export {};