Use ct.SHA256Hash for log ID rather than []byte

This commit is contained in:
Andrew Ayer
2021-04-30 17:04:16 -04:00
parent 2cccf67601
commit a147970db8
5 changed files with 16 additions and 16 deletions

View File

@@ -10,7 +10,6 @@
package loglist
import (
"encoding/base64"
"time"
)
@@ -25,7 +24,7 @@ func (list *List) AllLogs() []*Log {
}
func (log *Log) LogIDString() string {
return base64.StdEncoding.EncodeToString(log.LogID)
return log.LogID.Base64String()
}
func (log *Log) AcceptsExpiration(expiration time.Time) bool {