aboutsummaryrefslogtreecommitdiff
path: root/instance.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-29 10:28:30 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-29 10:28:30 +0100
commit504c1c8875cfdfd1e4e25ffdb5451bbeece36e26 (patch)
treeeb13204eb01c87915bf33d7344a302a8c57467f5 /instance.go
parentffe6e49220648a0b847e47e1072cf0b8d1b1f803 (diff)
added hash function (sha256) in log parameters
Diffstat (limited to 'instance.go')
-rw-r--r--instance.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/instance.go b/instance.go
index 46fcaa9..12415f0 100644
--- a/instance.go
+++ b/instance.go
@@ -30,6 +30,7 @@ type LogParameters struct {
AnchorPool *x509.CertPool // for chain verification
AnchorList []*x509.Certificate // for access to the raw certificates
Signer crypto.Signer
+ HashType crypto.Hash // hash function used by Trillian
}
// NewInstance returns an initialized Instance
@@ -70,6 +71,7 @@ func NewLogParameters(treeId int64, prefix string, anchorPath, keyPath string) (
AnchorPool: anchorPool,
AnchorList: anchorList,
Signer: key,
+ HashType: crypto.SHA256,
}, nil
}