site

package
v0.0.0-...-bda66fc Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: ISC Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Site

type Site struct {
	Validates []*Site
	Nonce     uint64
	Content   hash.Hash
	Type      string
}

Site represents a single storage node inside the tangle

func (*Site) Deserialize

func (s *Site) Deserialize(b []byte) error

Deserialize restores the site from a slice of bytes

func (*Site) Hash

func (s *Site) Hash() hash.Hash

Hash computes the hash of the site

func (*Site) Mine

func (s *Site) Mine(targetWeight int)

Mine the block for a specifig weight

func (*Site) Serialize

func (s *Site) Serialize() []byte

Serialize converts the site to a slice of bytes

Jump to

Keyboard shortcuts

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