diff options
author | Linus Nordberg <linus@nordberg.se> | 2014-05-10 11:17:12 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2014-05-10 11:17:12 +0200 |
commit | b4b5e0c94ed3f3d579ec033a52b2a8d70069cc64 (patch) | |
tree | a01bdf16ee8f9fbc5dc126b37b65353b32b4b258 | |
parent | 0a0ab0b6d91210d5bc5782f4f5372dd934643085 (diff) |
The tree head signature from get-sth is not base64 encoded.
-rw-r--r-- | src/v1.erl | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3,7 +3,7 @@ get_sth_consistency/3, get_proof_by_hash/3, get_entries/3, get_roots/3, get_entry_and_proof/3]). -export([hello/3]). --include("/home/linus/usr/src/ct/plop/include/plop.hrl"). +-include("$CTROOT/plop/include/plop.hrl"). -define(PROTOCOL_VERSION, 1). %% Public functions. @@ -36,7 +36,7 @@ get_sth(SessionID, _Env, _Input) -> R = [{tree_size, Treesize}, {timestamp, Timestamp}, {sha256_root_hash, base64:encode(Roothash)}, - {tree_head_signature, base64:encode(Signature)}], + {tree_head_signature, Signature}], mod_esi:deliver(SessionID, binary_to_list(jiffy:encode({R}))). get_sth_consistency(SessionID, _Env, _Input) -> |