package convert
import "github.com/google/trillian/storage/storagepb/convert"
Package convert contains helpers used by storage implementations.
Index ¶
- func Marshal(t smt.Tile, height uint) (*storagepb.SubtreeProto, error)
- func Unmarshal(sp *storagepb.SubtreeProto) (smt.Tile, error)
Functions ¶
func Marshal ¶
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 ¶
- Version
- v1.3.9
- Published
- Jun 22, 2020
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 15 seconds ago –
Tools for package owners.