Add JSON tags to SignedCertificateTimestamp
This commit is contained in:
parent
ab16995f56
commit
bf676f06be
10
ct/types.go
10
ct/types.go
|
@ -288,12 +288,12 @@ type SignedTreeHead struct {
|
||||||
// add-chain and add-pre-chain methods after base64 decoding. (see RFC sections
|
// add-chain and add-pre-chain methods after base64 decoding. (see RFC sections
|
||||||
// 3.2 ,4.1 and 4.2)
|
// 3.2 ,4.1 and 4.2)
|
||||||
type SignedCertificateTimestamp struct {
|
type SignedCertificateTimestamp struct {
|
||||||
SCTVersion Version // The version of the protocol to which the SCT conforms
|
SCTVersion Version `json:"sct_version"` // The version of the protocol to which the SCT conforms
|
||||||
LogID SHA256Hash // the SHA-256 hash of the log's public key, calculated over
|
LogID SHA256Hash `json:"id"` // the SHA-256 hash of the log's public key, calculated over
|
||||||
// the DER encoding of the key represented as SubjectPublicKeyInfo.
|
// the DER encoding of the key represented as SubjectPublicKeyInfo.
|
||||||
Timestamp uint64 // Timestamp (in ms since unix epoc) at which the SCT was issued
|
Timestamp uint64 `json:"timestamp"` // Timestamp (in ms since unix epoc) at which the SCT was issued
|
||||||
Extensions CTExtensions // For future extensions to the protocol
|
Extensions CTExtensions `json:"extensions"` // For future extensions to the protocol
|
||||||
Signature DigitallySigned // The Log's signature for this SCT
|
Signature DigitallySigned `json:"signature"` // The Log's signature for this SCT
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s SignedCertificateTimestamp) String() string {
|
func (s SignedCertificateTimestamp) String() string {
|
||||||
|
|
Loading…
Reference in New Issue