support

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 IsValidMainnet(address string) (valid bool, err error)

func IsValidTestnet

func IsValidTestnet(address string) (valid bool, err error)

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

func ValidateAddress

func ValidateAddress(address string, tag []byte) (bool, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL