Home Reference Source
public class | source

PPoWHelper

You can directly use an instance of this class. pPoWHelper

Method Summary

Public Methods
public

LCA(proofs1: *, proofs2: *): *

LCA between too proofs.

public

good(underlyingChain: *, µ-superchain: *, miu: *): boolean

Definition 8 (Good superchain) if it has both superquality and multilevel quality with parameters (δ, m)

Private Methods
private

_localGood(µ-superchain: *, underlyingChain: *, miu: *): boolean

Definition 5 (Locally good superchain).

private

_multilevelQuality(underlyingChain: *, µ-superchain: *, miu: *): boolean

Definition 7 (Multilevel quality)

private

_superchainQuality(underlyingChain: *, µ-superchain: *, miu: *, m: *): boolean

Definition 6 (Superchain quality).

Public Methods

public LCA(proofs1: *, proofs2: *): * source

LCA between too proofs. Each proof contains a blocks array

Params:

NameTypeAttributeDescription
proofs1 *
proofs2 *

Return:

*

public good(underlyingChain: *, µ-superchain: *, miu: *): boolean source

Definition 8 (Good superchain) if it has both superquality and multilevel quality with parameters (δ, m)

Params:

NameTypeAttributeDescription
underlyingChain *

C

µ-superchain *

C'

miu *

Return:

boolean

Private Methods

private _localGood(µ-superchain: *, underlyingChain: *, miu: *): boolean source

Definition 5 (Locally good superchain).

Params:

NameTypeAttributeDescription
µ-superchain *

C'

underlyingChain *

C

miu *

Return:

boolean

private _multilevelQuality(underlyingChain: *, µ-superchain: *, miu: *): boolean source

Definition 7 (Multilevel quality)

Params:

NameTypeAttributeDescription
underlyingChain *

C

µ-superchain *

C'

miu *

Return:

boolean

private _superchainQuality(underlyingChain: *, µ-superchain: *, miu: *, m: *): boolean source

Definition 6 (Superchain quality).

Params:

NameTypeAttributeDescription
underlyingChain *

C

µ-superchain *

C'

miu *
m *

Return:

boolean