aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2021-09-14 14:32:18 +0200
committerLinus Nordberg <linus@nordberg.se>2021-09-14 14:32:18 +0200
commit771a90a429654916e03838e407d78a5109476933 (patch)
treeab1b36d6b33629b1737534409774c76008409f7b
parent5c99a7a7ca110c94ecfeef424f3e89092994dd18 (diff)
base url is now sigsum/v0
-rwxr-xr-xsiglog-witness.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/siglog-witness.py b/siglog-witness.py
index c4f992d..5a91be2 100755
--- a/siglog-witness.py
+++ b/siglog-witness.py
@@ -274,7 +274,7 @@ def store_tree_head(tree_head):
f.write(tree_head.text())
def fetch_tree_head_and_verify(log_verification_key):
- req = requests.get(g_args.base_url + 'st/v0/get-tree-head-to-sign')
+ req = requests.get(g_args.base_url + 'sigsum/v0/get-tree-head-to-sign')
if req.status_code != 200:
return None, (ERR_TREEHEAD_FETCH,
"ERROR: unable to fetch new tree head: {}".format(req.status_code))
@@ -289,7 +289,7 @@ def fetch_tree_head_and_verify(log_verification_key):
def fetch_consistency_proof(first, second):
post_data = 'old_size={}\n'.format(first)
post_data += 'new_size={}\n'.format(second)
- req = requests.post(g_args.base_url + 'st/v0/get-consistency-proof', post_data)
+ req = requests.post(g_args.base_url + 'sigsum/v0/get-consistency-proof', post_data)
if req.status_code != 200:
return None, (ERR_CONSISTENCYPROOF_FETCH,
"ERROR: unable to fetch consistency proof: {}".format(req.status_code))
@@ -350,7 +350,7 @@ def sign_send_store_tree_head(signing_key, tree_head):
post_data = 'signature={}\n'.format(hexlify(signature).decode('ascii'))
post_data += 'key_hash={}\n'.format(hash.hexdigest())
- req = requests.post(g_args.base_url + 'st/v0/add-cosignature', post_data)
+ req = requests.post(g_args.base_url + 'sigsum/v0/add-cosignature', post_data)
if req.status_code != 200:
return (ERR_COSIG_POST,
"ERROR: Unable to post signature to log: {} => {}: {}". format(req.url,