@entros/pulse-sdk 1.4.2 → 1.5.1
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/README.md +2 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2308 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2308 -42
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Client-side SDK for the Entros Protocol. Captures behavioral biometrics (voice, motion, touch), extracts 134 statistical features, generates a Groth16 zero-knowledge proof, and submits for on-chain verification on Solana. Raw biometric data stays on-device — only derived features and the proof are transmitted.
|
|
7
7
|
|
|
8
|
+
> **Looking for a drop-in?** Most integrators want [`@entros/verify`](https://github.com/entros-protocol/entros-verify) — a popup-pattern React component that wraps this SDK and ships verification in five lines of JSX. Use this package directly when you need to own the verification UX (custom capture canvas, branded loading states, mobile-native).
|
|
9
|
+
|
|
8
10
|
## Install
|
|
9
11
|
|
|
10
12
|
```bash
|
package/dist/index.d.mts
CHANGED
|
@@ -622,6 +622,18 @@ interface StoredVerificationData {
|
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* Fetch identity state from the on-chain IdentityState PDA.
|
|
625
|
+
*
|
|
626
|
+
* Uses the bundled `entros_anchor.json` IDL (copied verbatim from
|
|
627
|
+
* `protocol-core/target/idl/`) instead of `Program.fetchIdl`, which
|
|
628
|
+
* adds a 150-300ms RPC round-trip per call to fetch the IDL from chain.
|
|
629
|
+
* Account decoding is identical; the only difference is that IDL changes
|
|
630
|
+
* now require an SDK bump rather than a chain-side IDL upload — in
|
|
631
|
+
* practice that's already true since on-chain Anchor changes need
|
|
632
|
+
* matching SDK updates anyway.
|
|
633
|
+
*
|
|
634
|
+
* When the on-chain `entros_anchor` program changes, re-copy
|
|
635
|
+
* `protocol-core/target/idl/entros_anchor.json` into `src/protocol/idl/`
|
|
636
|
+
* and bump the SDK minor version.
|
|
625
637
|
*/
|
|
626
638
|
declare function fetchIdentityState(walletPubkey: string, connection: any): Promise<IdentityState | null>;
|
|
627
639
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -622,6 +622,18 @@ interface StoredVerificationData {
|
|
|
622
622
|
|
|
623
623
|
/**
|
|
624
624
|
* Fetch identity state from the on-chain IdentityState PDA.
|
|
625
|
+
*
|
|
626
|
+
* Uses the bundled `entros_anchor.json` IDL (copied verbatim from
|
|
627
|
+
* `protocol-core/target/idl/`) instead of `Program.fetchIdl`, which
|
|
628
|
+
* adds a 150-300ms RPC round-trip per call to fetch the IDL from chain.
|
|
629
|
+
* Account decoding is identical; the only difference is that IDL changes
|
|
630
|
+
* now require an SDK bump rather than a chain-side IDL upload — in
|
|
631
|
+
* practice that's already true since on-chain Anchor changes need
|
|
632
|
+
* matching SDK updates anyway.
|
|
633
|
+
*
|
|
634
|
+
* When the on-chain `entros_anchor` program changes, re-copy
|
|
635
|
+
* `protocol-core/target/idl/entros_anchor.json` into `src/protocol/idl/`
|
|
636
|
+
* and bump the SDK minor version.
|
|
625
637
|
*/
|
|
626
638
|
declare function fetchIdentityState(walletPubkey: string, connection: any): Promise<IdentityState | null>;
|
|
627
639
|
/**
|