opus
opus copied to clipboard
Aries SSI integration
For proper testing you need to start ngrok so the agent is visible outside of your env.
Prerequisites
ngrok http 10001 --log=stdout
export SITE_URL=$(curl http://localhost:4040/api/tunnels | jq --raw-output '.tunnels | map(select(.name | contains("(http)"))) | .[0] | .public_url')
After SITE_URL
is set the app can be started normally with
docker-compose build --no-cache client server
docker-compose up -d
Issues
You may see the following error after going through the setup flow:
Credential definition 2jyjQwHm9aFmLcN79CsgUk:3:CL:13674:default is on ledger default but not in wallet default
Which brings us to the first improvement, which is how to restore already existing wallets into the agents memory.
Workarounds
You can start fresh by running the script below:
#!/usr/bin/env bash
function generateKey(){
(
_length=${1:-48}
# Format can be `-base64` or `-hex`
_format=${2:--base64}
echo $(openssl rand ${_format} ${_length})
)
}
function generateSeed(){
(
_prefix=${1}
_seed=$(echo "${_prefix}$(generateKey 32)" | fold -w 32 | head -n 1 )
_seed=$(echo -n "${_seed}")
echo ${_seed}
)
}
generateSeed opus-agent
That will basically make the agent a whole new entity