netsec-ethz / fpki

4 stars 1 forks source link

Use slices of values (not pointers) for IDs #65

Closed juagargi closed 1 month ago

juagargi commented 1 month ago

In general, using slices of pointers introduces a double indirection. Only the parent IDs have any reason to be represented as a pointer: if nil it means there is no parent.

This PR modifies many lines, but semantically just changes slices like

[]*common.SHA256Output

to

[]common.SHA256Output

Some other slices, like those of []*ctx509.Certificate have been adapted as well.


This change is Reviewable