diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-29 16:57:13 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-29 16:57:13 +0100 |
commit | cf16cc04f72f477cdc7a99f17b00314a2f2fe922 (patch) | |
tree | 2601da309ee2923df4de7a44a43dbb2d4217f84f /reqres.go | |
parent | 7d186fff4f0d510581207b0603ea1c946286d7ae (diff) |
fixed tls length specifiers
Diffstat (limited to 'reqres.go')
-rw-r--r-- | reqres.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |