diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/v1.erl | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -28,7 +28,17 @@ add_pre_chain(SessionID, _Env, _Input) -> niy(SessionID). get_sth(SessionID, _Env, _Input) -> - niy(SessionID). + #sth{ + treesize = Treesize, + timestamp = Timestamp, + roothash = Roothash, + signature = Signature} = plop:sth(), + R = [{treesize, Treesize}, + {timestamp, Timestamp}, + {sha256_root_hash, base64:encode(Roothash)}, + {tree_head_signature, base64:encode(Signature)}], + mod_esi:deliver(SessionID, binary_to_list(jiffy:encode({R}))). + get_sth_consistency(SessionID, _Env, _Input) -> niy(SessionID). get_proof_by_hash(SessionID, _Env, _Input) -> |