C# Class BCNet.BlockHeader

Exibir arquivo 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_oe property

public uint mDifficultyBits
return uint

mHash public_oe property

public byte[] mHash
return byte[]

mMerkleRoot public_oe property

public byte[] mMerkleRoot
return byte[]

mNOnce public_oe property

public uint mNOnce
return uint

mPrevBlock public_oe property

public byte[] mPrevBlock
return byte[]

mTimestamp public_oe property

public uint mTimestamp
return uint

mVersion public_oe property

public uint mVersion
return uint