Skip to content

Commit

Permalink
Improve VC docs with domain separator extension (#2721)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmuntaner authored Dec 3, 2024
1 parent d9e8e2a commit 766795b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/vc-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ the context contains a time-stamped yet unsigned VC, for which the canister sign
available only at `get_credential`-call.

**NOTE:**
The signed credential must use the verifiable credential domain separator `"iccs_verifiable_credential"` as an array of bytes.
The convention is to sign the credential with the domain separator `"iccs_verifiable_credential"` as an array of bytes. This is achieved by adding a prefix that consists of a 1-byte lenth of the domain separator, followed by the actual separator. See [vc_signing_input_hash](https://docs.rs/ic-verifiable-credentials/1.0.1/ic_verifiable_credentials/fn.vc_signing_input_hash.html).

### 4: Get Credential

Expand Down

0 comments on commit 766795b

Please sign in to comment.