EncodeBlockHeader() public static method

public static EncodeBlockHeader ( BlockHeader blockHeader ) : byte[]
blockHeader BitSharp.Core.Domain.BlockHeader
return byte[]
Exemplo n.º 1
0
        public static UInt256 CalculateBlockHash(UInt32 Version, UInt256 PreviousBlock, UInt256 MerkleRoot, UInt32 Time, UInt32 Bits, UInt32 Nonce)
        {
            var sha256 = new SHA256Managed();

            return(new UInt256(sha256.ComputeDoubleHash(DataEncoder.EncodeBlockHeader(Version, PreviousBlock, MerkleRoot, Time, Bits, Nonce))));
        }
Exemplo n.º 2
0
 public static UInt256 CalculateBlockHash(UInt32 Version, UInt256 PreviousBlock, UInt256 MerkleRoot, DateTimeOffset Time, UInt32 Bits, UInt32 Nonce)
 {
     return(new UInt256(SHA256Static.ComputeDoubleHash(DataEncoder.EncodeBlockHeader(Version, PreviousBlock, MerkleRoot, Time, Bits, Nonce))));
 }
Exemplo n.º 3
0
        public static UInt256 CalculateBlockHash(BlockHeader blockHeader)
        {
            var sha256 = new SHA256Managed();

            return(new UInt256(sha256.ComputeDoubleHash(DataEncoder.EncodeBlockHeader(blockHeader))));
        }
Exemplo n.º 4
0
 public static UInt256 CalculateBlockHash(BlockHeader blockHeader)
 {
     return(new UInt256(SHA256Static.ComputeDoubleHash(DataEncoder.EncodeBlockHeader(blockHeader))));
 }