summaryrefslogtreecommitdiff
path: root/src/v1.erl
diff options
context:
space:
mode:
authorMagnus Ahltorp <map@kth.se>2015-03-04 22:48:40 +0100
committerMagnus Ahltorp <map@kth.se>2015-03-04 22:48:40 +0100
commita706e79fa722f681320fe1b05824352b6b9a63fc (patch)
tree41907841f09f19d93adfab91eb314bb0789851f9 /src/v1.erl
parentf800e5fae8f9579328477b3bc3e939d9f4369d32 (diff)
parente0f11a58033d52c70bc76b4b5611cb88485d4653 (diff)
Merge branch 'extsign'
Diffstat (limited to 'src/v1.erl')
-rw-r--r--src/v1.erl12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/v1.erl b/src/v1.erl
index d9796fa..006990d 100644
--- a/src/v1.erl
+++ b/src/v1.erl
@@ -39,16 +39,8 @@ request(post, "ct/v1/add-pre-chain", _Input) ->
niy();
request(get, "ct/v1/get-sth", _Query) ->
- { Treesize,
- Timestamp,
- Roothash,
- Signature} = plop:sth(),
- R = [{tree_size, Treesize},
- {timestamp, Timestamp},
- {sha256_root_hash, base64:encode(Roothash)},
- {tree_head_signature, base64:encode(
- plop:serialise(Signature))}],
- success({R});
+ R = plop:sth(),
+ success(R);
request(get, "ct/v1/get-sth-consistency", Query) ->
case lists:sort(Query) of