Skip to content

Commit f69a3d8

Browse files
authored
delete old TODO (#240)
* delete old TODO * more unactionable TODO
1 parent f7a2ab6 commit f69a3d8

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

internal/scti/handlers.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ func addChainInternal(ctx context.Context, opts *HandlerOptions, log *log, w htt
334334

335335
// As the Log server has definitely got the Merkle tree leaf, we can
336336
// generate an SCT and respond with it.
337-
// TODO(phboneff): this should work, but double check
338337
sct, err := log.signSCT(&loggedLeaf)
339338
if err != nil {
340339
return http.StatusInternalServerError, fmt.Errorf("failed to generate SCT: %s", err)

internal/scti/signatures.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ func (cts *cpSigner) Sign(msg []byte) ([]byte, error) {
196196
return nil, fmt.Errorf("checkpoint's origin %s doesn't match signer's origin %s", ckpt.Origin, cts.origin)
197197
}
198198

199-
// TODO(phboneff): make sure that it's ok to generate the timestamp here
200199
t := uint64(cts.timeSource.Now().UnixMilli())
201200
sig, err := buildCp(cts.sthSigner, ckpt.Size, t, ckpt.Hash[:])
202201
if err != nil {
@@ -240,7 +239,6 @@ func NewCpSigner(cs crypto.Signer, origin string, timeSource TimeSource) (note.S
240239

241240
// getCTLogID takes a log public key and returns the LogID. (see RFC 6962 S3.2)
242241
// In CT V1 the log id is a hash of the public key.
243-
// TODO(phboneff): migrate to the logid package
244242
func getCTLogID(pk crypto.PublicKey) ([sha256.Size]byte, error) {
245243
pubBytes, err := x509.MarshalPKIXPublicKey(pk)
246244
if err != nil {

internal/types/rfc6962/rfc6962.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ type ASN1Cert struct {
114114
}
115115

116116
// LogID holds the hash of the Log's public key (section 3.2).
117-
// TODO(pphaneuf): Users should be migrated to the one in the logid package.
118117
type LogID struct {
119118
KeyID [sha256.Size]byte
120119
}

0 commit comments

Comments
 (0)