diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-06-01 21:11:34 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-06-01 21:11:34 +0200 |
commit | 2c2c6936a93ce4f18302426a665ed5782910ab85 (patch) | |
tree | 93dbaa64e7c85990464adc625ffdcd5d48aa098a /util.go | |
parent | 17a1cf31764541daa509cf59f1bbb32c25b28c8c (diff) |
re-added all endpoints
To be tested in greater detail.
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 15 |
1 files changed, 0 insertions, 15 deletions
@@ -1,9 +1,6 @@ package stfe import ( - //"fmt" - - //"github.com/google/trillian" ttypes "github.com/google/trillian/types" "github.com/system-transparency/stfe/types" ) @@ -28,15 +25,3 @@ func NodePathFromHashes(hashes [][]byte) []*[types.HashSize]byte { } return path } - -//func NewStItemListFromLeaves(leaves []*trillian.LogLeaf) (*types.StItemList, error) { -// items := make([]types.StItem, 0, len(leaves)) -// for _, leaf := range leaves { -// var item types.StItem -// if err := types.Unmarshal(leaf.LeafValue, &item); err != nil { -// return nil, fmt.Errorf("Unmarshal failed: %v", err) -// } -// items = append(items, item) -// } -// return &types.StItemList{items}, nil -//} |