Skip to content

Commit

Permalink
more docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
phbnf committed Aug 9, 2024
1 parent 685a35a commit 51c5e40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions personalities/sctfe/serialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func buildCp(signer crypto.Signer, size uint64, timeMilli uint64, hash []byte) (
return sig, nil
}

// CpSigner implements note.Signer. It can generate https://c2sp.org/static-ct-api checkpoints.
type CpSigner struct {
sthSigner crypto.Signer
origin string
Expand Down Expand Up @@ -153,8 +154,7 @@ func (cts *CpSigner) KeyHash() uint32 {
return cts.keyHash
}

// NewCpSigner returns a new note signer that can sign static-ct-api checkpoints
// according to https://c2sp.org/static-ct-api.
// NewCpSigner returns a new note signer that can sign https://c2sp.org/static-ct-api checkpoints.
// TODO(phboneff): add tests
func NewCpSigner(signer crypto.Signer, origin string, logID [32]byte, timeSource TimeSource) note.Signer {
h := sha256.New()
Expand Down

0 comments on commit 51c5e40

Please sign in to comment.