#!/bin/bash if [ $# -lt 2 ]; then echo "Usage: $0 " exit 1 fi response="$(curl -u admin:pass -s -X POST -H "Content-Type: application/json" \ --data '{"members": {"'$1'":{}, "'$2'":{}}}' \ http://localhost:8080/api/v1/multisig)" echo $response | jq -r .secrets.$1 | base32 -d | jq '. | {"'$1'": .}' echo $response | jq -r .secrets.$2 | base32 -d | jq '. | {"'$2'": .}'