Documentation ¶
Index ¶
Constants ¶
View Source
const ( CRYPTOHASHSIZE = 32 CRYPTOPUBKEYSIZE = 33 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Block ¶
type Block struct { BlockHeader BlockHeader MinerTx MinerTransaction TxHashes []CryptoHash }
type BlockHashingBlob ¶
type BlockHashingBlob struct { BlockHeader BlockHeader TreeRootHash CryptoHash TxHashSize uint64 }
type BlockHeader ¶
type BlockHeader struct { MajorVersion uint8 MinorVersion uint8 Timestamp uint64 PrevId CryptoHash Nonce uint32 }
type BlockTemplateBlob ¶
type BlockTemplateBlob struct {
Block Block
}
type CryptoHash ¶
type CryptoHash struct {
HashData [CRYPTOHASHSIZE]byte
}
func (*CryptoHash) FromHex ¶
func (c *CryptoHash) FromHex(hexStr string) error
func (CryptoHash) ToHex ¶
func (c CryptoHash) ToHex() string
type CryptoPubKey ¶
type CryptoPubKey struct {
PubKeyData [CRYPTOPUBKEYSIZE]byte
}
func (*CryptoPubKey) FromHex ¶
func (c *CryptoPubKey) FromHex(hexStr string) error
func (CryptoPubKey) ToHex ¶
func (c CryptoPubKey) ToHex() string
type MinerTransaction ¶
Click to show internal directories.
Click to hide internal directories.