UNPKG

opnet

Version:

The perfect library for building Bitcoin-based applications.

23 lines (22 loc) 735 B
import { Address } from '../../../node_modules/@btc-vision/transaction/build/index.js'; export interface IBlockWitnessAPI { readonly trusted: boolean; readonly signature: Buffer; readonly timestamp: number; readonly proofs: readonly Buffer[]; readonly identity?: Buffer; readonly publicKey?: Address; } export interface RawBlockWitnessAPI { readonly trusted: boolean; readonly signature: string; readonly timestamp: number; readonly proofs: readonly string[]; readonly identity?: string; readonly publicKey?: string; } export interface IBlockWitness { blockNumber: bigint; readonly witnesses: readonly IBlockWitnessAPI[]; } export type BlockWitnesses = readonly IBlockWitness[];