From 0b9ce0c5e42e7818febddb7bd8c6b0cb7c07b012 Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Thu, 5 Nov 2020 12:31:34 +0100 Subject: moved publlic x509 helpers into a separate package --- instance.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'instance.go') 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 } -- cgit v1.2.3