From d7b968876411edf26decca660a8de8be5794a22e Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Mon, 11 Aug 2025 16:38:50 +0800 Subject: [PATCH] fix unmarshalling of SCT extensions field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s binary data (which gets base64 encoded), not a string. --- ct/client/logclient.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ct/client/logclient.go b/ct/client/logclient.go index eeeeae68..fbe1b6ef 100644 --- a/ct/client/logclient.go +++ b/ct/client/logclient.go @@ -55,7 +55,7 @@ type addChainResponse struct { SCTVersion ct.Version `json:"sct_version"` // SCT structure version ID string `json:"id"` // Log ID Timestamp uint64 `json:"timestamp"` // Timestamp of issuance - Extensions string `json:"extensions"` // Holder for any CT extensions + Extensions []byte `json:"extensions"` // Holder for any CT extensions Signature string `json:"signature"` // Log signature for this SCT }