Skip to content

Shannona prvkeys sign fix #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/BasicExamples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand Down
6 changes: 3 additions & 3 deletions docs/DIDExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion docs/InclusionProofs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
6 changes: 3 additions & 3 deletions docs/VCElisionExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down Expand Up @@ -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
```

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/VCResidentExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down