package convert

import "github.com/google/trillian/storage/storagepb/convert"

Package convert contains helpers used by storage implementations.

Index

Functions

func Marshal

func Marshal(t smt.Tile, height uint) (*storagepb.SubtreeProto, error)

Marshal converts the given Merkle tree tile to SubtreeProto.

func Unmarshal

func Unmarshal(sp *storagepb.SubtreeProto) (smt.Tile, error)

Unmarshal converts the given SubtreeProto to a Merkle tree tile.

Source Files

convert.go doc.go

Version
v1.3.9
Published
Jun 22, 2020
Platform
js/wasm
Imports
4 packages
Last checked
15 seconds ago

Tools for package owners.