Documentation
¶
Index ¶
- Variables
- func GetBlockHashingBlob(b serialization.Block) ([]byte, error)
- func GetBlockID(b serialization.Block) [32]byte
- func IsValidMainnet(address string) (valid bool, err error)
- func IsValidTestnet(address string) (valid bool, err error)
- func ParseBlockFromTemplateBlob(blob string) (serialization.Block, error)
- func ValidateAddress(address string, tag []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidChecksum = errors.New("invalid checksum for address")
Functions ¶
func GetBlockHashingBlob ¶
func GetBlockHashingBlob(b serialization.Block) ([]byte, error)
GetBlockHashingBlob
Given a block object from the serialization library, it will convert the header of the object into a miner-hashable object
func GetBlockID ¶
func GetBlockID(b serialization.Block) [32]byte
GetBlockID
Given a block object, hash the blob to pull the block ID for the object, may be deprecated by the implementation of a proper response from the daemon
func IsValidMainnet ¶
func IsValidTestnet ¶
func ParseBlockFromTemplateBlob ¶
func ParseBlockFromTemplateBlob(blob string) (serialization.Block, error)
ParseBlockFromTemplateBlob
Given a block template from the daemon, this will parse it into a usable Block object for handling data properly in go structs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.