Home Reference Source
public class | source

PPowBlockchainProofPi

Extends:

PPoWBlockchainProofBasic → PPowBlockchainProofPi

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public

blocksGreaterLevel(miu: *): *

Returns ths upchain of current chain(C ↑ µ).

public

blocksLessLevel(miu: *): *

Returns ths downchain of current chain(C ↓ µ).

public

deserializeProof(buffer: *, offset: number): {"data": *, "offset": *}

public

downSuperChainGetUnderlyingChain(underlyingChain: *, superChain: *): *

public
public

serializeProof(proof: *): *

Inherited Summary

From class PPoWBlockchainProofBasic
public get
public
public

blocks: *

public
public

date: *

public

hash: *

public
public
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

Override:

PPoWBlockchainProofBasic#constructor

Public Members

public proofGzip: * source

Override:

PPoWBlockchainProofBasic#proofGzip

Public Methods

public blocksGreaterLevel(miu: *): * source

Returns ths upchain of current chain(C ↑ µ).

Params:

NameTypeAttributeDescription
miu *

Return:

*

public blocksLessLevel(miu: *): * source

Returns ths downchain of current chain(C ↓ µ).

Params:

NameTypeAttributeDescription
miu *

Return:

*

public deserializeProof(buffer: *, offset: number): {"data": *, "offset": *} source

Params:

NameTypeAttributeDescription
buffer *
offset number
  • optional
  • default: 0

Return:

{"data": *, "offset": *}

public downSuperChainGetUnderlyingChain(underlyingChain: *, superChain: *): * source

Params:

NameTypeAttributeDescription
underlyingChain *

C

superChain *

C'

Return:

*

public downSuperChainGetUnderlyingChainLength(underlyingChain: *): * source

Params:

NameTypeAttributeDescription
underlyingChain *

Return:

*

public serializeProof(proof: *): * source

Params:

NameTypeAttributeDescription
proof *

Return:

*