Documentation ¶
Overview ¶
Package ctonly has support for CT Tiles API.
This code should not be reused outside of CT. Most of this code came from Filipo's Sunlight implementation of https://c2sp.org/ct-static-api.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Timestamp uint64 IsPrecert bool Certificate []byte Precertificate []byte PrecertSigningCert []byte IssuerKeyHash []byte FingerprintsChain [][32]byte }
Entry represents a CT log entry.
func (Entry) LeafData ¶
LeafData returns the data which should be added to an entry bundle for this entry.
Note that this will include data which IS NOT directly committed to by the entry's MerkleLeafHash.
func (Entry) MerkleLeafHash ¶
MerkleLeafHash returns the RFC6962 leaf hash for this entry.
Note that we embed an SCT extension which captures the index of the entry in the log according to the mechanism specified in https://c2sp.org/ct-static-api.
func (*Entry) MerkleTreeLeaf ¶
MerkleTreeLeaf returns a RFC 6962 MerkleTreeLeaf.
Note that we embed an SCT extension which captures the index of the entry in the log according to the mechanism specified in https://c2sp.org/ct-static-api.