C# Class BitSharp.Core.Domain.BlockHeader

ファイルを表示 Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
BlockHeader ( UInt32 version, UInt256 previousBlock, UInt256 merkleRoot, DateTimeOffset time, UInt32 bits, UInt32 nonce, UInt256 hash ) : BitSharp.Common
CalculateTarget ( ) : UInt256
CalculateWork ( ) : UInt256
Create ( UInt32 version, UInt256 previousBlock, UInt256 merkleRoot, DateTimeOffset time, UInt32 bits, UInt32 nonce ) : BlockHeader
Equals ( object obj ) : bool
GetHashCode ( ) : int
With ( UInt32 Version = null, UInt256 PreviousBlock = null, UInt256 MerkleRoot = null, DateTimeOffset Time = null, UInt32 Bits = null, UInt32 Nonce = null ) : BlockHeader
operator ( ) : bool

Method Details

BlockHeader() public method

public BlockHeader ( UInt32 version, UInt256 previousBlock, UInt256 merkleRoot, DateTimeOffset time, UInt32 bits, UInt32 nonce, UInt256 hash ) : BitSharp.Common
version System.UInt32
previousBlock UInt256
merkleRoot UInt256
time DateTimeOffset
bits System.UInt32
nonce System.UInt32
hash UInt256
return BitSharp.Common

CalculateTarget() public method

public CalculateTarget ( ) : UInt256
return UInt256

CalculateWork() public method

public CalculateWork ( ) : UInt256
return UInt256

Create() public static method

public static Create ( UInt32 version, UInt256 previousBlock, UInt256 merkleRoot, DateTimeOffset time, UInt32 bits, UInt32 nonce ) : BlockHeader
version System.UInt32
previousBlock UInt256
merkleRoot UInt256
time DateTimeOffset
bits System.UInt32
nonce System.UInt32
return BlockHeader

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

With() public method

public With ( UInt32 Version = null, UInt256 PreviousBlock = null, UInt256 MerkleRoot = null, DateTimeOffset Time = null, UInt32 Bits = null, UInt32 Nonce = null ) : BlockHeader
Version System.UInt32
PreviousBlock UInt256
MerkleRoot UInt256
Time DateTimeOffset
Bits System.UInt32
Nonce System.UInt32
return BlockHeader

operator() public static method

public static operator ( ) : bool
return bool