-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): ledger module registerPublicDid implementation (#398)
Co-authored-by: Timo Glastra <timo@animo.id>
- Loading branch information
1 parent
600eccf
commit 5f2d512
Showing
10 changed files
with
76 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
#!/bin/bash | ||
|
||
export DID=${1?"Did missing\nUsage: $0 DID VERKEY"} | ||
export VERKEY=${2?"Verkey missing\nUsage: $0 DID VERKEY"} | ||
export DID=${1?"Did missing\nUsage: $0 DID VERKEY [ROLE]"} | ||
export VERKEY=${2?"Verkey missing\nUsage: $0 DID VERKEY [ROLE]"} | ||
export ROLE=$3 | ||
|
||
if [ -z "$ROLE" ]; then | ||
ROLE=TRUST_ANCHOR | ||
fi | ||
|
||
echo " | ||
wallet open afj-wallet key=password | ||
pool connect afj-pool | ||
did use V4SGRU86Z58d6TV7PBUe6f | ||
ledger nym did=${DID} verkey=${VERKEY} role=TRUST_ANCHOR" >/etc/indy/command.txt | ||
ledger nym did=${DID} verkey=${VERKEY} role=${ROLE}" >/etc/indy/command.txt | ||
|
||
indy-cli --config /etc/indy/indy-cli-config.json /etc/indy/command.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters