Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlockRewriteFraudProof

Hierarchy

Index

Constructors

constructor

Properties

givenInclusionProof

givenInclusionProof: BlockInclusionProof

message

message: string

name

name: string

Optional stack

stack?: string

violatingInclusionProof

violatingInclusionProof: BlockInclusionProof

Static Optional prepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

Static stackTraceLimit

stackTraceLimit: number

Methods

[custom]

  • [custom](depth: number, opts: { indentationLvl: number; stylize: Function }): string
  • Parameters

    • depth: number
    • opts: { indentationLvl: number; stylize: Function }
      • indentationLvl: number
      • stylize: Function

    Returns string

toJSON

  • toJSON(): { description: string; givenInclusionProof: { blockSeq: number; logPubkey: string; rootHashAtBlock: string; rootHashSignature: string; vitraBlockInclusionProof: number }; violatingInclusionProof: { blockSeq: number; logPubkey: string; rootHashAtBlock: string; rootHashSignature: string; vitraBlockInclusionProof: number }; vitraBlockInclusionFraudProof: number }
  • Returns { description: string; givenInclusionProof: { blockSeq: number; logPubkey: string; rootHashAtBlock: string; rootHashSignature: string; vitraBlockInclusionProof: number }; violatingInclusionProof: { blockSeq: number; logPubkey: string; rootHashAtBlock: string; rootHashSignature: string; vitraBlockInclusionProof: number }; vitraBlockInclusionFraudProof: number }

    • description: string
    • givenInclusionProof: { blockSeq: number; logPubkey: string; rootHashAtBlock: string; rootHashSignature: string; vitraBlockInclusionProof: number }
      • blockSeq: number
      • logPubkey: string
      • rootHashAtBlock: string
      • rootHashSignature: string
      • vitraBlockInclusionProof: number
    • violatingInclusionProof: { blockSeq: number; logPubkey: string; rootHashAtBlock: string; rootHashSignature: string; vitraBlockInclusionProof: number }
      • blockSeq: number
      • logPubkey: string
      • rootHashAtBlock: string
      • rootHashSignature: string
      • vitraBlockInclusionProof: number
    • vitraBlockInclusionFraudProof: number

Static captureStackTrace

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Static fromJSON

Generated using TypeDoc