aboutsummaryrefslogtreecommitdiff
path: root/reqres.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-29 16:57:13 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-29 16:57:13 +0100
commitcf16cc04f72f477cdc7a99f17b00314a2f2fe922 (patch)
tree2601da309ee2923df4de7a44a43dbb2d4217f84f /reqres.go
parent7d186fff4f0d510581207b0603ea1c946286d7ae (diff)
fixed tls length specifiers
Diffstat (limited to 'reqres.go')
-rw-r--r--reqres.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/reqres.go b/reqres.go
index d66ca4b..0c14d89 100644
--- a/reqres.go
+++ b/reqres.go
@@ -206,8 +206,8 @@ func NewGetEntriesResponse(leaves []*trillian.LogLeaf) (GetEntriesResponse, erro
}
// NewGetProofByHashResponse assembles a get-proof-by-hash response
-func NewGetProofByHashResponse(treeSize uint64, inclusionProof *trillian.Proof) (*GetProofByHashResponse, error) {
- item := NewInclusionProofV1([]byte("TODO: add log ID"), treeSize, inclusionProof)
+func NewGetProofByHashResponse(logId []byte, treeSize uint64, inclusionProof *trillian.Proof) (*GetProofByHashResponse, error) {
+ item := NewInclusionProofV1(logId, treeSize, inclusionProof)
b, err := tls.Marshal(item)
if err != nil {
return nil, fmt.Errorf("tls marshal failed: %v", err)