block

package
v0.0.0-...-fdc5c16 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	RequestsCount int
	Requests      []blockchainRequest.Entity
}

type Entity

type Entity struct {
	EntityData

	Seal      seal.Entity
	BlankSeal seal.Entity
}

func (*Entity) Sign

func (e *Entity) Sign(tools crypto.Tools, privateKey []byte) (err error)

func (*Entity) Verify

func (e *Entity) Verify(tools crypto.Tools) (passed bool, err error)

type EntityData

type EntityData struct {
	Header Header
	Body   Body
}
type Header struct {
	Version          string
	Height           uint64
	PrevBlock        []byte
	TransactionsRoot []byte
	Timestamp        uint64
}

Jump to

Keyboard shortcuts

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