Skip to content

Commit 61595ec

Browse files
committed
more unactionable TODO
1 parent 7f5cd0d commit 61595ec

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
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 {

0 commit comments

Comments
 (0)