diff options
| author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-29 10:28:30 +0100 | 
|---|---|---|
| committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-29 10:28:30 +0100 | 
| commit | 504c1c8875cfdfd1e4e25ffdb5451bbeece36e26 (patch) | |
| tree | eb13204eb01c87915bf33d7344a302a8c57467f5 | |
| parent | ffe6e49220648a0b847e47e1072cf0b8d1b1f803 (diff) | |
added hash function (sha256) in log parameters
| -rw-r--r-- | instance.go | 2 | 
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  } | 
