Home Reference Source
public class | source

PPoWBlockchainProofBasic

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

blocks: *

public
public

date: *

public

hash: *

public get
public
public

Method Summary

Public Methods
public

async calculateProofGzip(): *

public
public
public
public

equalsProofs(proofHash: *): boolean

public

findBlockByHeight(height: *): *

public

getProofHeaders(starting: *, length: *): *

public

hasBlock(height: *): *

public

push(block: *)

public

validateProof(startingPoint: number): boolean

public

validateProofLastElements(lastElements: *): *

public

Public Constructors

public constructor() source

Public Members

public blockchain: * source

public blocks: * source

public blocksIndex: {} source

public date: * source

public hash: * source

public get lastProofBlock: * source

public proofGzip: * source

public proofSerialized: * source

Public Methods

public async calculateProofGzip(): * source

Return:

*

public calculateProofHash(): * source

Return:

*

public async calculateProofSerialized(): * source

Return:

*

public destroyProof() source

public equalsProofs(proofHash: *): boolean source

Params:

NameTypeAttributeDescription
proofHash *

Return:

boolean

public findBlockByHeight(height: *): * source

Params:

NameTypeAttributeDescription
height *

Return:

*

public getProofHeaders(starting: *, length: *): * source

Params:

NameTypeAttributeDescription
starting *
length *

Return:

*

public hasBlock(height: *): * source

Params:

NameTypeAttributeDescription
height *

Return:

*

public push(block: *) source

Params:

NameTypeAttributeDescription
block *

public validateProof(startingPoint: number): boolean source

Params:

NameTypeAttributeDescription
startingPoint number
  • optional
  • default: 0

Return:

boolean

public validateProofLastElements(lastElements: *): * source

Params:

NameTypeAttributeDescription
lastElements *

Return:

*

public validatesLastBlock(): boolean source

Return:

boolean