aboutsummaryrefslogtreecommitdiff
path: root/sth.go
Commit message (Collapse)AuthorAgeFilesLines
* fixed unintuitive variable names in ActiveSthSourceRasmus Dahlberg2021-02-181-19/+19
|
* reordered SthSource functionsRasmus Dahlberg2021-02-181-17/+17
|
* added TestNewActiveSthSourceRasmus Dahlberg2021-02-181-2/+2
|
* fixed unexpected reflect behaviorRasmus Dahlberg2021-02-181-13/+1
| | | | | | | | | | | | After tls.Unmarshal() an empty slice is not assigned the nil value, but rather a slice of zero length. It is in contrast to NewTreeHeadV1(), which assigns a nil value. Therefore, reflect.DeepEqual() considers them to be different. Fixed by assigning an empty tree head extension as `make([]byte, 0)`, and not looking for nil values but rather zero-length values with len(). Further read: "Note that a non-nil empty slice and a nil slice [...] are not deeply equal." (https://golang.org/pkg/reflect/#DeepEqual).
* added basic server-side cosigning (work in progress)Rasmus Dahlberg2021-02-171-0/+159