Documentation
¶
Index ¶
- Constants
- func BinRootBlockPoWHashingData(root bytecoin.BinRootBlock) (data []byte, err error)
- func BlockHash(tmpl bytecoin.BinBlockTemplate, format Format) (hash bytecoin.Hash, err error)
- func BlockHeaderPreHash(tmpl bytecoin.BinBlockTemplate) (hash bytecoin.Hash, err error)
- func BlockPoWHashingData(tmpl bytecoin.BinBlockTemplate, format Format) (data []byte, err error)
- func BlockTemplateToRootBlock(tmpl bytecoin.BinBlockTemplate, format Format) bytecoin.BinRootBlock
- func CoinbaseTreeBranch(hashes []bytecoin.Hash) []bytecoin.Hash
- func CoinbaseTreeDepth(count int) int
- func ExtraExtraNonce(extraNonce []byte) []byte
- func ExtraMergeMiningTag(mmRoot bytecoin.Hash, mmDepth byte) []byte
- func FastHash(blobs ...[]byte) bytecoin.Hash
- func FillMergeMiningBranches(items []MergeMiningItem) bytecoin.Hash
- func MarshalBlockTemplate(tmpl bytecoin.BinBlockTemplate, format Format) (data []byte, err error)
- func TreeHash(hashes []bytecoin.Hash) bytecoin.Hash
- func TreeHashFromBranch(branch []bytecoin.Hash, depth int, leaf bytecoin.Hash, path bytecoin.Hash) bytecoin.Hash
- func UnmarshalBlockTemplate(blob []byte, format Format) (tmpl bytecoin.BinBlockTemplate, err error)
- func VerifyAddress(addr string, tags ...uint64) error
- type BinBlockBodyProxy
- type ExtraFields
- type ExtraMessage
- type Format
- type MergeMiningItem
Constants ¶
View Source
const ( FormatBytecoin = Format(0) FormatElectroneum = Format(1) )
Variables ¶
This section is empty.
Functions ¶
func BinRootBlockPoWHashingData ¶
func BinRootBlockPoWHashingData(root bytecoin.BinRootBlock) (data []byte, err error)
func BlockHeaderPreHash ¶
func BlockHeaderPreHash(tmpl bytecoin.BinBlockTemplate) (hash bytecoin.Hash, err error)
func BlockPoWHashingData ¶
func BlockPoWHashingData(tmpl bytecoin.BinBlockTemplate, format Format) (data []byte, err error)
func BlockTemplateToRootBlock ¶
func BlockTemplateToRootBlock(tmpl bytecoin.BinBlockTemplate, format Format) bytecoin.BinRootBlock
func CoinbaseTreeDepth ¶
func ExtraExtraNonce ¶
func FillMergeMiningBranches ¶
func FillMergeMiningBranches(items []MergeMiningItem) bytecoin.Hash
func MarshalBlockTemplate ¶
func MarshalBlockTemplate(tmpl bytecoin.BinBlockTemplate, format Format) (data []byte, err error)
func TreeHashFromBranch ¶
func UnmarshalBlockTemplate ¶
func UnmarshalBlockTemplate(blob []byte, format Format) (tmpl bytecoin.BinBlockTemplate, err error)
func VerifyAddress ¶
Types ¶
type BinBlockBodyProxy ¶
type ExtraFields ¶
type ExtraFields struct {
Padding int
PublicKey *bytecoin.PublicKey
PaymentId *bytecoin.Hash
ExtraNonce bytecoin.HexBlob
ExtraNonceText string
MMRoot *bytecoin.Hash
MMDepth int
BlockCapacityVote *uint64
EncryptedMessages []ExtraMessage
SplitExtra []bytecoin.HexBlob
}
func ParseExtra ¶
func ParseExtra(extra []byte) ExtraFields
type ExtraMessage ¶
type ExtraMessage struct {
Output bytecoin.BinTransactionOutput
Message bytecoin.HexBlob
}
Click to show internal directories.
Click to hide internal directories.