@hsuite/native-connect-angular 2.1.4 → 2.1.6

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/dist/index.d.ts CHANGED
@@ -5,7 +5,7 @@ import * as i2 from '@ionic/angular';
5
5
  import { ModalController as ModalController$1 } from '@ionic/angular';
6
6
  import { ModalController, AlertController, ToastController } from '@ionic/angular/standalone';
7
7
  import * as _hsuite_native_connect_sdk from '@hsuite/native-connect-sdk';
8
- import { SupportedLedger, TransportState, Logger, TransportProvider, ChannelState, ChannelAccount, ChannelInvite, ChannelType } from '@hsuite/native-connect-sdk';
8
+ import { SupportedLedger, AuthSigningScheme, TransportState, Logger, TransportProvider, ChannelState, ChannelAccount, ChannelInvite, ChannelType } from '@hsuite/native-connect-sdk';
9
9
  export { ChannelAccount, ChannelInvite, ChannelMessage, ChannelState, ChannelType, HederaTransactionEncoder, MessageType, TransportState, XrplTransactionEncoder } from '@hsuite/native-connect-sdk';
10
10
  import * as _hsuite_native_connect_angular from '@hsuite/native-connect-angular';
11
11
  import { Observable } from 'rxjs';
@@ -452,6 +452,19 @@ interface SignMessageResult {
452
452
  * ambiguity when verifying the signature.
453
453
  */
454
454
  messageLength?: number;
455
+ /**
456
+ * Which byte layout the wallet actually signed, so a verifier reconstructs
457
+ * the correct bytes:
458
+ * - `hsuite-domain` — HSuite domain-separated blob (native `hsc:` path;
459
+ * `buildDomainSeparatedMessage`). This is the default when absent.
460
+ * - `hedera-wc` — Hedera WalletConnect standard
461
+ * (`\x19Hedera Signed Message:\n<len><msg>`), returned by `hedera_signMessage`.
462
+ *
463
+ * A signature is only verifiable against the scheme it was produced under —
464
+ * the two are cryptographically incompatible. Absent = `hsuite-domain` for
465
+ * backwards compatibility with pre-existing native flows.
466
+ */
467
+ signingScheme?: AuthSigningScheme;
455
468
  /** Additional metadata from the wallet. */
456
469
  metadata?: Record<string, unknown>;
457
470
  }
@@ -4792,6 +4805,15 @@ interface SmartHostVerifyRequest {
4792
4805
  caipChainId?: string;
4793
4806
  ledgerId?: string;
4794
4807
  networkId?: string;
4808
+ /**
4809
+ * Byte layout the wallet signed, so the host reconstructs the correct bytes
4810
+ * before verifying. Only sent when it deviates from the legacy default:
4811
+ * absent = native `hsc:` domain-separated signing (`hsuite-domain`), which
4812
+ * every already-deployed host understands; `hedera-wc` = WalletConnect's
4813
+ * `hedera_signMessage`. The host should feed this straight into
4814
+ * `verifyAuthSignature` from `@hsuite/native-connect-sdk`.
4815
+ */
4816
+ signingScheme?: AuthSigningScheme;
4795
4817
  }
4796
4818
  /**
4797
4819
  * Verify response shape expected from the smart host.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hsuite/native-connect-angular",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "license": "PolyForm-Noncommercial-1.0.0",
5
5
  "description": "Angular integration SDK for HSuite Wallet - provides direct SDK integration without wrappers",
6
6
  "type": "module",
@@ -10,6 +10,14 @@
10
10
  "fesm2022": "./dist/fesm2022/hsuite-native-connect-angular.mjs",
11
11
  "typings": "./dist/index.d.ts",
12
12
  "types": "./dist/index.d.ts",
13
+ "scripts": {
14
+ "build": "./node_modules/.bin/ng-packagr -p ng-package.json",
15
+ "clean": "rm -rf dist",
16
+ "test": "vitest run",
17
+ "test:watch": "vitest --watch",
18
+ "test:coverage": "vitest run --coverage",
19
+ "docs": "compodoc -p tsconfig.json -c ../../compodoc.base.json -d dist/docs --name 'Angular SDK API' --includes docs"
20
+ },
13
21
  "peerDependencies": {
14
22
  "@angular/common": "^20.0.0",
15
23
  "@angular/core": "^20.0.0",
@@ -20,15 +28,16 @@
20
28
  "dependencies": {
21
29
  "@hashgraph/proto": "^2.25.0",
22
30
  "@hashgraph/sdk": "^2.76.0",
23
- "@hsuite/native-connect-sdk": "^2.1.1",
31
+ "@hsuite/native-connect-sdk": "^2.1.6",
32
+ "@hsuite/native-connect-types": "^2.1.6",
33
+ "@hsuite/native-connect-ui": "^2.1.6",
24
34
  "@walletconnect/modal": "^2.7.0",
25
35
  "@walletconnect/sign-client": "^2.23.0",
26
36
  "@walletconnect/types": "^2.23.0",
27
37
  "qr-scanner": "^1.4.2",
28
38
  "qrcode": "^1.5.4",
29
39
  "tslib": "^2.6.0",
30
- "xrpl": "^3.0.0",
31
- "@hsuite/native-connect-types": "^2.1.2"
40
+ "xrpl": "^3.0.0"
32
41
  },
33
42
  "devDependencies": {
34
43
  "@angular-devkit/build-angular": "^20.3.14",
@@ -70,13 +79,5 @@
70
79
  "url": "https://github.com/HSuiteNetwork/hsuite-native-connect.git",
71
80
  "directory": "packages/angular-sdk"
72
81
  },
73
- "homepage": "https://github.com/HSuiteNetwork/hsuite-native-connect/tree/master/packages/angular-sdk",
74
- "scripts": {
75
- "build": "./node_modules/.bin/ng-packagr -p ng-package.json",
76
- "clean": "rm -rf dist",
77
- "test": "vitest run",
78
- "test:watch": "vitest --watch",
79
- "test:coverage": "vitest run --coverage",
80
- "docs": "compodoc -p tsconfig.json -c ../../compodoc.base.json -d dist/docs --name 'Angular SDK API' --includes docs"
81
- }
82
- }
82
+ "homepage": "https://github.com/HSuiteNetwork/hsuite-native-connect/tree/master/packages/angular-sdk"
83
+ }