diff --git a/docs/BasicExamples.md b/docs/BasicExamples.md index 1de5252..30cc7ee 100644 --- a/docs/BasicExamples.md +++ b/docs/BasicExamples.md @@ -102,7 +102,7 @@ Alice sends a signed plaintext message to Bob. ```bash 👉 -SIGNED_ENVELOPE=`envelope subject type string $PLAINTEXT_HELLO | envelope sign --prvkeys $ALICE_PRVKEY_BASE` +SIGNED_ENVELOPE=`envelope subject type string $PLAINTEXT_HELLO | envelope sign -s $ALICE_PRVKEY_BASE` echo $SIGNED_ENVELOPE ``` @@ -185,7 +185,7 @@ Alice and Carol jointly send a signed plaintext message to Bob. ```bash 👉 -MULTISIGNED_ENVELOPE=`envelope subject type string $PLAINTEXT_HELLO | envelope sign --prvkeys $ALICE_PRVKEY_BASE --prvkeys $CAROL_PRVKEY_BASE` +MULTISIGNED_ENVELOPE=`envelope subject type string $PLAINTEXT_HELLO | envelope sign -s $ALICE_PRVKEY_BASE --prvkeys $CAROL_PRVKEY_BASE` echo $MULTISIGNED_ENVELOPE ``` @@ -366,7 +366,7 @@ Alice signs a plaintext message, wraps it so her signature will also be encrypte ```bash 👉 -SIGNED_ENCRYPTED=`envelope subject type string $PLAINTEXT_HELLO | envelope sign --prvkeys $ALICE_PRVKEY_BASE | envelope subject type wrapped | envelope encrypt --key $KEY` +SIGNED_ENCRYPTED=`envelope subject type string $PLAINTEXT_HELLO | envelope sign -s $ALICE_PRVKEY_BASE | envelope subject type wrapped | envelope encrypt --key $KEY` echo $SIGNED_ENCRYPTED ``` @@ -457,7 +457,7 @@ Alice encrypts a plaintext message, then signs it. ```bash 👉 -ENCRYPTED_SIGNED=`envelope subject type string $PLAINTEXT_HELLO | envelope encrypt --key $KEY | envelope sign --prvkeys $ALICE_PRVKEY_BASE` +ENCRYPTED_SIGNED=`envelope subject type string $PLAINTEXT_HELLO | envelope encrypt --key $KEY | envelope sign -s $ALICE_PRVKEY_BASE` echo $ENCRYPTED_SIGNED ``` @@ -576,7 +576,7 @@ Alice signs a message, and then encrypts it so that it can only be decrypted by ```bash 👉 -ENVELOPE_SIGNED_TO=`envelope subject type string $PLAINTEXT_HELLO | envelope sign --prvkeys $ALICE_PRVKEY_BASE | envelope encrypt --recipient $BOB_PUBKEYS --recipient $CAROL_PUBKEYS` +ENVELOPE_SIGNED_TO=`envelope subject type string $PLAINTEXT_HELLO | envelope sign -s $ALICE_PRVKEY_BASE | envelope encrypt --recipient $BOB_PUBKEYS --recipient $CAROL_PUBKEYS` echo $ENVELOPE_SIGNED_TO ``` diff --git a/docs/DIDExample.md b/docs/DIDExample.md index f20195e..34fef02 100644 --- a/docs/DIDExample.md +++ b/docs/DIDExample.md @@ -15,7 +15,7 @@ ALICE_UNSIGNED_DOCUMENT=`envelope subject type ur $ALICE_ARID | \ envelope assertion add pred-obj known controller ur $ALICE_ARID | \ envelope assertion add pred-obj known publicKeys ur $ALICE_PUBKEYS` ALICE_SIGNED_DOCUMENT=`envelope subject type wrapped $ALICE_UNSIGNED_DOCUMENT | \ - envelope sign --prvkeys $ALICE_PRVKEY_BASE --note "Made by Alice."` + envelope sign -s $ALICE_PRVKEY_BASE --note "Made by Alice."` envelope format $ALICE_SIGNED_DOCUMENT ``` @@ -54,7 +54,7 @@ ALICE_REGISTRATION=`envelope subject type ur $ALICE_ARID_UR | \ envelope assertion add pred-obj known entity envelope $ALICE_SIGNED_DOCUMENT | \ envelope assertion add pred-obj known dereferenceVia uri $ALICE_URI | \ envelope subject type wrapped | \ - envelope sign --prvkeys $LEDGER_PRVKEY_BASE --note "Made by ExampleLedger."` + envelope sign -s $LEDGER_PRVKEY_BASE --note "Made by ExampleLedger."` envelope format $ALICE_REGISTRATION ``` @@ -132,7 +132,7 @@ Alice responds by adding her registered URI to the nonce, and signing it. ALICE_RESPONSE=`envelope subject type wrapped $ALICE_CHALLENGE | \ envelope assertion add pred-obj known dereferenceVia uri $ALICE_URI | \ envelope subject type wrapped | \ - envelope sign --prvkeys $ALICE_PRVKEY_BASE --note "Made by Alice."` + envelope sign -s $ALICE_PRVKEY_BASE --note "Made by Alice."` envelope format $ALICE_RESPONSE ``` diff --git a/docs/InclusionProofs.md b/docs/InclusionProofs.md index c3a66a7..80beda7 100644 --- a/docs/InclusionProofs.md +++ b/docs/InclusionProofs.md @@ -118,7 +118,7 @@ CREDENTIAL=`envelope subject type arid 4676635a6e6068c2ef3ffd8ff726dd401fd341036 envelope assertion add pred-obj string "professionalDevelopmentHours" number 15 | envelope assertion add pred-obj string "topics" cbor 82695375626a6563742031695375626a6563742032 | envelope subject type wrapped | - envelope sign --prvkeys $BOARD_PRVKEY_BASE | + envelope sign -s $BOARD_PRVKEY_BASE | envelope assertion add pred-obj known note string "Signed by Example Electrical Engineering Board"` envelope format $CREDENTIAL ``` diff --git a/docs/VCElisionExample.md b/docs/VCElisionExample.md index 402d1e6..b078cfc 100644 --- a/docs/VCElisionExample.md +++ b/docs/VCElisionExample.md @@ -49,7 +49,7 @@ CREDENTIAL=`envelope subject type arid 4676635a6e6068c2ef3ffd8ff726dd401fd341036 envelope assertion add pred-obj string "professionalDevelopmentHours" number 15 | envelope assertion add pred-obj string "topics" cbor "82695375626a6563742031695375626a6563742032" | envelope subject type wrapped | - envelope sign --prvkeys $BOARD_PRVKEY_BASE | + envelope sign -s $BOARD_PRVKEY_BASE | envelope assertion add pred-obj known note string "Signed by Example Electrical Engineering Board"` envelope format $CREDENTIAL ``` @@ -260,7 +260,7 @@ WARRANTY=`envelope subject type wrapped $REDACTED_CREDENTIAL | envelope assertion add pred-obj string "employeeStatus" string "active" | envelope subject type wrapped | envelope assertion add pred-obj known note string "Signed by Employer Corp." | - envelope sign --prvkeys $EMPLOYER_PRVKEY_BASE` + envelope sign -s $EMPLOYER_PRVKEY_BASE` envelope format $WARRANTY ``` @@ -314,7 +314,7 @@ WARRANTY=`envelope subject type wrapped $REDACTED_CREDENTIAL | envelope assertion add pred-obj string "employeeStatus" string "active" | envelope subject type wrapped | envelope assertion add pred-obj known note string "Signed by Employer Corp." | - envelope sign --prvkeys $EMPLOYER_PRVKEY_BASE` + envelope sign -s $EMPLOYER_PRVKEY_BASE` ``` ## Compression and Encryption diff --git a/docs/VCResidentExample.md b/docs/VCResidentExample.md index 8da6b52..184e32e 100644 --- a/docs/VCResidentExample.md +++ b/docs/VCResidentExample.md @@ -63,7 +63,7 @@ JOHN_RESIDENT_CARD=`envelope subject type ur $JOHN_ARID | \ envelope assertion add pred-obj known holder envelope $HOLDER | \ envelope assertion add pred-obj known note string "The State of Example recognizes JOHN SMITH as a Permanent Resident." | \ envelope subject type wrapped | \ - envelope sign --prvkeys $STATE_PRVKEY_BASE --note "Made by the State of Example."` + envelope sign -s $STATE_PRVKEY_BASE --note "Made by the State of Example."` envelope format $JOHN_RESIDENT_CARD ```