hashblock

package
v0.0.0-...-ebac000 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(blk *Block) ([]byte, error)

func Hash

func Hash(data, blake []byte) []byte

Types

type Block

type Block struct {
	//_msgpack struct{} `msgpack:",asArray"`
	Index     string `msgpack:"i,omitempty"`
	Timestamp string `msgpack:"t,omitempty"`
	Genesis   []byte `msgpack:"g,omitempty"`
	Txs       []Tx   `msgpack:"t,omitempty"`
	PrevHash  []byte `msgpack:"p,omitempty"`
}

func (*Block) String

func (blk *Block) String() string

type Tx

type Tx []byte

Jump to

Keyboard shortcuts

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