jetdrop

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package jetdrop represents Jet Drops (Blocks) of a blockchain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode added in v0.0.4

func Encode(drop *JetDrop) ([]byte, error)

Encode serializes jet drop.

Types

type JetDrop

type JetDrop struct {
	// Pulse number (probably we should save it too).
	Pulse core.PulseNumber

	// PrevHash is a hash of all record hashes belongs to previous pulse.
	PrevHash []byte

	// Hash is a hash of all record hashes belongs to one pulse and previous drop hash.
	Hash []byte
}

JetDrop is a blockchain block. It contains hashes of the current block and the previous one.

func Decode added in v0.0.4

func Decode(buf []byte) (*JetDrop, error)

Decode deserializes jet drop.

Jump to

Keyboard shortcuts

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