blob: 9d3221ee3c3678148cf48c29ab354cf902f4711e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
set -eo pipefail
source config
tree_size=2
hash_b64="Fl5eY9cAOz9A9c9j3Uibia3YfBxeGH5KQJg5BMIqNrA="
if [[ ! -z $1 ]] && [[ ! -z $2 ]]; then
tree_size=$1
hash_b64=$2
fi
info "fetching proof($hash_b64) against size $tree_size"
curl -G -d "tree_size=$tree_size" -d "hash=$hash_b64" $base_url/get-proof-by-hash
newline
|