Home Reference Source
public class | source

MiniBlockchainBlockData

Extends:

inheritBlockData → MiniBlockchainBlockData

It overrides the inheritedBlockData to introduce the Accountant Tree Hash

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public
public

Method Summary

Public Methods
public
public
public

deserializeData(buffer: *, offset: *, onlyHeader: boolean): *

public

async validateBlockData(height: *, blockValidation: *): boolean

Private Methods
private

Public Constructors

public constructor() source

Public Members

public hashAccountantTree: * source

public hashData: * source

Public Methods

public calculateAccountantTreeHashBlockData(): * source

Return:

*

public computeAccountantTreeHashBlockData() source

public deserializeData(buffer: *, offset: *, onlyHeader: boolean): * source

Params:

NameTypeAttributeDescription
buffer *
offset *
onlyHeader boolean
  • optional
  • default: false

Return:

*

public async validateBlockData(height: *, blockValidation: *): boolean source

Params:

NameTypeAttributeDescription
height *
blockValidation *

Return:

boolean

Private Methods

private _computeBlockDataHeaderPrefix(onlyHeader: boolean): * source

Params:

NameTypeAttributeDescription
onlyHeader boolean
  • optional
  • default: false

Return:

*