@concordium/browser-wallet-api-helpers 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ ### 3.2.0
6
+
7
+ - Added `requestVerifiablePresentationV1` entrypoint to prove statements about identities and verifiable credentials with auditable anchor
8
+
5
9
  ### 3.1.0
6
10
 
7
11
  - Updated handler `sendTransaction` with new payload type `TokenUpdatePayload`
@@ -1,4 +1,4 @@
1
- import type { AccountAddress, AccountTransactionInput, AccountTransactionSignature, AccountTransactionType, Base58String, Base64String, ConfigureBakerPayload, ConfigureDelegationPayload, ContractAddress, ContractName, CredentialStatements, CredentialSubject, DeployModulePayload, EntrypointName, HexString, IdProofOutput, IdStatement, InitContractInput, RegisterDataPayload, SchemaVersion, SimpleTransferPayload, SimpleTransferWithMemoPayload, TokenUpdatePayload, UpdateContractInput, UpdateCredentialsInput, VerifiablePresentation, Transaction } from '@concordium/web-sdk';
1
+ import type { AccountAddress, AccountTransactionInput, AccountTransactionSignature, AccountTransactionType, Base58String, Base64String, ConfigureBakerPayload, ConfigureDelegationPayload, ContractAddress, ContractName, CredentialStatements, CredentialSubject, DeployModulePayload, EntrypointName, HexString, IdProofOutput, IdStatement, InitContractInput, RegisterDataPayload, SchemaVersion, SimpleTransferPayload, SimpleTransferWithMemoPayload, TokenUpdatePayload, UpdateContractInput, UpdateCredentialsInput, VerifiablePresentation, VerifiablePresentationV1, VerificationRequestV1, Transaction } from '@concordium/web-sdk';
2
2
  import type { RpcTransport } from '@protobuf-ts/runtime-rpc';
3
3
  import { LaxNumberEnumValue, LaxStringEnumValue } from './util';
4
4
  export interface MetadataUrl {
@@ -260,6 +260,12 @@ interface MainWalletApi {
260
260
  * @returns The presentation for the statements.
261
261
  */
262
262
  requestVerifiablePresentation(challenge: string, statements: CredentialStatements): Promise<VerifiablePresentation>;
263
+ /**
264
+ * Request that the user provides a proof for the given statements with Verification Request Anchor.
265
+ * @param request the web3Id statements that should be proven.
266
+ * @returns A cryptographically verifiable proof generated by the Concordium showing that certain conditions are met without revealing the user’s private data.
267
+ */
268
+ requestVerifiablePresentationV1(request: VerificationRequestV1.Type): Promise<VerifiablePresentationV1.Type>;
263
269
  }
264
270
  export type WalletApi = MainWalletApi & EventListeners;
265
271
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concordium/browser-wallet-api-helpers",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "license": "Apache-2.0",
5
5
  "packageManager": "yarn@3.2.0",
6
6
  "main": "lib/index.js",
@@ -40,7 +40,7 @@
40
40
  "webpack-cli": "^4.9.2"
41
41
  },
42
42
  "peerDependencies": {
43
- "@concordium/web-sdk": "^12.0.0",
43
+ "@concordium/web-sdk": "^12.0.1",
44
44
  "@protobuf-ts/runtime-rpc": "^2.9.1"
45
45
  },
46
46
  "scripts": {