aboutsummaryrefslogtreecommitdiff
path: root/pkg/trillian
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/trillian')
-rw-r--r--pkg/trillian/client.go2
-rw-r--r--pkg/trillian/client_test.go4
-rw-r--r--pkg/trillian/util.go16
3 files changed, 11 insertions, 11 deletions
diff --git a/pkg/trillian/client.go b/pkg/trillian/client.go
index 9523e56..2412074 100644
--- a/pkg/trillian/client.go
+++ b/pkg/trillian/client.go
@@ -7,7 +7,7 @@ import (
"github.com/golang/glog"
"github.com/google/trillian"
ttypes "github.com/google/trillian/types"
- "github.com/system-transparency/stfe/pkg/types"
+ "golang.sigsum.org/sigsum-log-go/pkg/types"
"google.golang.org/grpc/codes"
)
diff --git a/pkg/trillian/client_test.go b/pkg/trillian/client_test.go
index 6b3d881..70dbd39 100644
--- a/pkg/trillian/client_test.go
+++ b/pkg/trillian/client_test.go
@@ -9,8 +9,8 @@ import (
"github.com/golang/mock/gomock"
"github.com/google/trillian"
ttypes "github.com/google/trillian/types"
- "github.com/system-transparency/stfe/pkg/mocks"
- "github.com/system-transparency/stfe/pkg/types"
+ "golang.sigsum.org/sigsum-log-go/pkg/mocks"
+ "golang.sigsum.org/sigsum-log-go/pkg/types"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"
)
diff --git a/pkg/trillian/util.go b/pkg/trillian/util.go
index 4cf31fb..6de78f7 100644
--- a/pkg/trillian/util.go
+++ b/pkg/trillian/util.go
@@ -4,12 +4,12 @@ import (
"fmt"
trillian "github.com/google/trillian/types"
- siglog "github.com/system-transparency/stfe/pkg/types"
+ sigsum "golang.sigsum.org/sigsum-log-go/pkg/types"
)
-func treeHeadFromLogRoot(lr *trillian.LogRootV1) *siglog.TreeHead {
- var hash [siglog.HashSize]byte
- th := siglog.TreeHead{
+func treeHeadFromLogRoot(lr *trillian.LogRootV1) *sigsum.TreeHead {
+ var hash [sigsum.HashSize]byte
+ th := sigsum.TreeHead{
Timestamp: uint64(lr.TimestampNanos / 1000 / 1000 / 1000),
TreeSize: uint64(lr.TreeSize),
RootHash: &hash,
@@ -18,14 +18,14 @@ func treeHeadFromLogRoot(lr *trillian.LogRootV1) *siglog.TreeHead {
return &th
}
-func nodePathFromHashes(hashes [][]byte) ([]*[siglog.HashSize]byte, error) {
- var path []*[siglog.HashSize]byte
+func nodePathFromHashes(hashes [][]byte) ([]*[sigsum.HashSize]byte, error) {
+ var path []*[sigsum.HashSize]byte
for _, hash := range hashes {
- if len(hash) != siglog.HashSize {
+ if len(hash) != sigsum.HashSize {
return nil, fmt.Errorf("unexpected hash length: %v", len(hash))
}
- var h [siglog.HashSize]byte
+ var h [sigsum.HashSize]byte
copy(h[:], hash)
path = append(path, &h)
}