From 33e199c9939e110bd677e7b3e43547c6e55bb6e2 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Mon, 13 Sep 2021 13:26:06 +0200 Subject: fixed {st,stfe,system-transparency} -> sigsum --- pkg/trillian/client.go | 2 +- pkg/trillian/client_test.go | 4 ++-- pkg/trillian/util.go | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) (limited to 'pkg/trillian') 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) } -- cgit v1.2.3