jetdrop

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 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 record.PulseNum

	// 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.
	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