aboutsummaryrefslogtreecommitdiff
path: root/sth.go
Commit message (Collapse)AuthorAgeFilesLines
* return cosigned sth regardless of cosignature countRasmus Dahlberg2021-03-161-1/+1
|
* major refactor based on README.md and TODOsRasmus Dahlberg2021-02-251-41/+49
| | | | | | Updated types, improved units tests, isolated most test data to have it in one place, renamed and created new files to improve readability, and fixed a bunch of minor TODOs.
* 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