Home Reference Source
public class | source

InterfaceBlockchainBlockData

Constructor Summary

Public Constructor
public

miner address is unencodedAddress

Member Summary

Public Members
public
public
public get
public set
public
Private Members
private
private

Method Summary

Public Methods
public
public
public

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

public
public

equals(data: *): *

public

serializeData(onlyHeader: boolean): *

convert data to Buffer

public

toJSON(): {"minerAddress": *, "hashData": *}

public

toString(): *

public

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

Private Methods
private
private

_setMinerAddress(minerAddressWIF: *)

Public Constructors

public constructor() source

miner address is unencodedAddress

Public Members

public blockchain: * source

public hashData: * source

public get minerAddress: * source

public set minerAddress source

public transactions: * source

Private Members

private _minerAddress: * source

private _onlyHeader: boolean source

Public Methods

public calculateHashBlockData(): * source

Return:

*

public computeHashBlockData() source

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

Params:

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

Return:

*

public destroyBlockData() source

public equals(data: *): * source

Params:

NameTypeAttributeDescription
data *

Return:

*

public serializeData(onlyHeader: boolean): * source

convert data to Buffer

Params:

NameTypeAttributeDescription
onlyHeader boolean
  • optional
  • default: false

Return:

*

public toJSON(): {"minerAddress": *, "hashData": *} source

Return:

{"minerAddress": *, "hashData": *}

public toString(): * source

Return:

*

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

Params:

NameTypeAttributeDescription
blockHeight *
blockValidation *

Return:

boolean

Private Methods

private _computeBlockDataHeaderPrefix(onlyHeader: boolean): * source

Params:

NameTypeAttributeDescription
onlyHeader boolean
  • optional
  • default: false

Return:

*

private _setMinerAddress(minerAddressWIF: *) source

Params:

NameTypeAttributeDescription
minerAddressWIF *