aboutsummaryrefslogtreecommitdiff
path: root/instance.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-05 12:31:34 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-11-05 12:31:34 +0100
commit0b9ce0c5e42e7818febddb7bd8c6b0cb7c07b012 (patch)
treec82df4051c9d94d15e54922bfd91094530c53688 /instance.go
parentcb8498119a0a3aaf34e09191e5e172173fdbc8ca (diff)
moved publlic x509 helpers into a separate package
Diffstat (limited to 'instance.go')
-rw-r--r--instance.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/instance.go b/instance.go
index 8e66f8f..baff329 100644
--- a/instance.go
+++ b/instance.go
@@ -12,6 +12,7 @@ import (
"github.com/golang/glog"
"github.com/google/trillian"
+ "github.com/system-transparency/stfe/x509util"
)
// Instance is an instance of a particular log front-end
@@ -61,12 +62,12 @@ func NewInstance(lp *LogParameters, client trillian.TrillianLogClient, deadline
// NewLogParameters initializes log parameters, assuming ed25519 signatures.
func NewLogParameters(treeId int64, prefix string, anchorPath, keyPath string, maxRange, maxChain int64) (*LogParameters, error) {
- anchorList, anchorPool, err := LoadTrustAnchors(anchorPath)
+ anchorList, anchorPool, err := x509util.LoadTrustAnchors(anchorPath)
if err != nil {
return nil, err
}
- key, err := LoadEd25519SigningKey(keyPath)
+ key, err := x509util.LoadEd25519SigningKey(keyPath)
if err != nil {
return nil, err
}