You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/credentials/src/holder.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,10 @@ function pointerToAttributeName(
55
55
* @param credential A Verifiable Credential containing a proof.
56
56
* @param proofOptions Options for creating the derived proof.
57
57
* @param proofOptions.disclose Allows selecting which claims/attributes in the credential should be disclosed, hiding others.
58
-
* @param proofOptions.disclose.only An array of credentialPath expressions selecting attributes to be disclosed.
58
+
* @param proofOptions.disclose.only An array of {@link https://www.rfc-editor.org/info/rfc6901 JSON Pointer} expressions selecting attributes to be disclosed.
59
59
* All other (non-mandatory) attributes that can be hidden will be hidden.
60
60
* Takes precedence over `allBut`.
61
-
* @param proofOptions.disclose.allBut An array of credentialPath expressions selecting attributes to be hidden.
61
+
* @param proofOptions.disclose.allBut An array of {@link https://www.rfc-editor.org/info/rfc6901 JSON Pointer} expressions selecting attributes to be hidden.
62
62
* This means that all other properties are being revealed.
63
63
* Selecting mandatory properties will result in an error.
64
64
* It is ignored if `only` is set.
@@ -121,7 +121,7 @@ export async function deriveProof(
121
121
* @param credentials Array of one or more Verifiable Credentials to be included in the presentation.
122
122
* @param holder Interfaces for interacting with the holder identity for the purpose of generating a presentation proof.
123
123
* @param holder.did The Decentralized Identifier (DID) of the holder.
124
-
* @param holder.didDocument The DID Document of the holder. If omitted, the holder DID will be resolved internally to retrieve the document.
124
+
* @param holder.didDocument The DID Document of the holder.
125
125
* @param holder.signers An array of signer interfaces, each allowing to request signatures made with a key associated with the holder DID Document.
126
126
* The function will select the first signer that matches requirements around signature algorithm and relationship of the key to the DID as given by the DID Document.
127
127
* @param presentationOptions Object holding optional arguments for scoping the presentation.
@@ -91,15 +92,14 @@ export async function createCredential({
91
92
*
92
93
* @param credential A credential document as returned by {@link createCredential}.
93
94
* @param issuer Interfaces for interacting with the issuer identity for the purpose of generating a proof.
94
-
* @param issuer.did The Decentralized Identifier (DID) of the issuer.
95
-
* @param issuer.didDocument The DID Document of the issuer. If omitted, the issuer DID will be resolved internally to retrieve the document.
95
+
* @param issuer.didDocument The DID Document of the issuer.
96
96
* @param issuer.signers An array of signer interfaces, each allowing to request signatures made with a key associated with the issuer DID Document.
97
97
* The function will select the first signer that matches requirements around signature algorithm and relationship of the key to the DID as given by the DID Document.
98
-
* @param issuer.submitterAccount Some proof types require making transactions to effect state changes on the KILT blockchain.
98
+
* @param issuer.submitter Some proof types require making transactions to effect state changes on the KILT blockchain.
99
99
* The blockchain account whose address is specified here will be used to cover all transaction fees and deposits due for this operation.
100
100
* As transactions to the blockchain need to be signed, `signers` is expected to contain a signer interface where the `id` matches this address.
101
-
*@param issuer.authorizeTx Optional. Allows customizing the way state changes on the KILT blockchain are authorized with a signature made with one of the issuer's DID keys.
102
-
* @param issuer.submitTx Optional. Allows customizing the way transactions are signed by the submitter account and submitted to the KILT blockchain.
101
+
*
102
+
* Alternatively, you can pass a {@link SubmitOverride} callback that takes care of Did-authorizing and submitting the transaction.
103
103
* If you are using a service that helps you submit and pay for transactions, this is your point of integration to it.
104
104
* @param proofOptions Options that control proof generation.
105
105
* @param proofOptions.proofType The type of proof to be created.
0 commit comments