blocks

package
v0.0.0-...-bebc87d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2014 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Multihash mh.Multihash
	Data      []byte
}

Block is a singular block of data in ipfs

func NewBlock

func NewBlock(data []byte) (*Block, error)

NewBlock creates a Block object from opaque data. It will hash the data.

func (*Block) Key

func (b *Block) Key() u.Key

Key returns the block's Multihash as a Key value.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳