From bf676f06bed81564e9d9534bbd622524554e1720 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sat, 16 Dec 2017 10:13:25 -0800 Subject: [PATCH] Add JSON tags to SignedCertificateTimestamp --- ct/types.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ct/types.go b/ct/types.go index 561e369..d1619aa 100644 --- a/ct/types.go +++ b/ct/types.go @@ -288,12 +288,12 @@ type SignedTreeHead struct { // add-chain and add-pre-chain methods after base64 decoding. (see RFC sections // 3.2 ,4.1 and 4.2) type SignedCertificateTimestamp struct { - SCTVersion 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 + SCTVersion Version `json:"sct_version"` // The version of the protocol to which the SCT conforms + 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. - Timestamp uint64 // Timestamp (in ms since unix epoc) at which the SCT was issued - Extensions CTExtensions // For future extensions to the protocol - Signature DigitallySigned // The Log's signature for this SCT + Timestamp uint64 `json:"timestamp"` // Timestamp (in ms since unix epoc) at which the SCT was issued + Extensions CTExtensions `json:"extensions"` // For future extensions to the protocol + Signature DigitallySigned `json:"signature"` // The Log's signature for this SCT } func (s SignedCertificateTimestamp) String() string {