C# Class BCNet.BlockHeader

Show file Open project: GarageGames/Bitcoin Class Usage Examples

Public Properties

Property Type Description
mDifficultyBits uint
mHash byte[]
mMerkleRoot byte[]
mNOnce uint
mPrevBlock byte[]
mTimestamp uint
mVersion uint

Public Methods

Method Description
BlockHeader ( ) : System
BlockHeader ( uint version, byte prevBlock, byte merkleRoot, uint timestamp, uint bits, uint nonce ) : System
ComputeHash ( bool useScrypt ) : void
Load ( BinaryReader br ) : void
Save ( BinaryWriter bw ) : void
ValidateHash ( ) : bool

Method Details

BlockHeader() public method

public BlockHeader ( ) : System
return System

BlockHeader() public method

public BlockHeader ( uint version, byte prevBlock, byte merkleRoot, uint timestamp, uint bits, uint nonce ) : System
version uint
prevBlock byte
merkleRoot byte
timestamp uint
bits uint
nonce uint
return System

ComputeHash() public method

public ComputeHash ( bool useScrypt ) : void
useScrypt bool
return void

Load() public method

public Load ( BinaryReader br ) : void
br System.IO.BinaryReader
return void

Save() public method

public Save ( BinaryWriter bw ) : void
bw System.IO.BinaryWriter
return void

ValidateHash() public method

public ValidateHash ( ) : bool
return bool

Property Details

mDifficultyBits public property

public uint mDifficultyBits
return uint

mHash public property

public byte[] mHash
return byte[]

mMerkleRoot public property

public byte[] mMerkleRoot
return byte[]

mNOnce public property

public uint mNOnce
return uint

mPrevBlock public property

public byte[] mPrevBlock
return byte[]

mTimestamp public property

public uint mTimestamp
return uint

mVersion public property

public uint mVersion
return uint