Documentation ¶
Index ¶
- Variables
- func CallMethod(i interface{}, methodName string) interface{}
- func Caller(steps int) string
- func CheckSign(publicKeys [][]byte, forSign string, signs []byte, nodeKeyOrLogin bool) (bool, error)
- func CopyFileContents(src, dst string) error
- func ErrInfo(verr interface{}, additionally ...string) error
- func ErrInfoFmt(err string, a ...interface{}) error
- func GetBlockBody(host string, blockID int64, dataTypeBlockBody int64) ([]byte, error)
- func GetCurrentDir() string
- func GetHTTPTextAnswer(url string) (string, error)
- func GetNodeKeys() (string, string, error)
- func GetParent() string
- func MerkleTreeRoot(dataArray [][]byte) []byte
- func ShellExecute(cmdline string)
- func TCPConn(Addr string) (net.Conn, error)
- func TypeInt(txType string) int64
- type BlockData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReturnCh is chan for returns ReturnCh chan string // CancelFunc is represents cancel func CancelFunc context.CancelFunc // DaemonsCount is number of daemons DaemonsCount int PrivateBlockchain = flag.Bool("privateBlockchain", false, "Is blockchain private") )
Functions ¶
func CallMethod ¶
func CallMethod(i interface{}, methodName string) interface{}
CallMethod calls the function by its name
func CheckSign ¶
func CheckSign(publicKeys [][]byte, forSign string, signs []byte, nodeKeyOrLogin bool) (bool, error)
CheckSign checks the signature
func ErrInfoFmt ¶
ErrInfoFmt fomats the error message
func GetBlockBody ¶
GetBlockBody gets the block data
func GetHTTPTextAnswer ¶
GetHTTPTextAnswer returns HTTP answer as a string
func GetNodeKeys ¶
GetNodeKeys returns node private key and public key
func GetParent ¶
func GetParent() string
GetParent returns the information where the call of function happened
func MerkleTreeRoot ¶
MerkleTreeRoot rertun Merkle value
Types ¶
Click to show internal directories.
Click to hide internal directories.