@rift-finance/wallet 1.4.34 → 3.0.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/dist/types.js CHANGED
@@ -1,10 +1,46 @@
1
1
  "use strict";
2
+ // ─────────────────────────────────────────────────────────────────────
3
+ // v3 (device-bound, non-custodial) wire types
4
+ // ─────────────────────────────────────────────────────────────────────
5
+ //
6
+ // Two shapes live here:
7
+ //
8
+ // EnrolledMethod — declares an auth method the user is registering on
9
+ // their wallet. Pass an array of these at signup / login / migrate so
10
+ // the enclave seals (private key + auth methods) together. A user can
11
+ // enrol multiple methods — typically one passkey + Google as backup.
12
+ //
13
+ // AuthProof — proves a specific transaction has been authorised by the
14
+ // user. Pass one with every signing request. The enclave verifies the
15
+ // proof matches one of the stored enrolled methods AND that the proof
16
+ // is bound to the user_op_hash being signed (nonce for OIDC, challenge
17
+ // for WebAuthn) — so a proof from one transaction can't authorise a
18
+ // different one.
19
+ //
20
+ // You usually don't construct these by hand. Use `PasskeyHelper` /
21
+ // `OidcHelper` (browser-only) — they handle the WebAuthn ceremony and
22
+ // Google Sign-In flow and return the right shape.
2
23
  Object.defineProperty(exports, "__esModule", { value: true });
3
24
  exports.InvoiceStatus = exports.Platform = exports.RampToken = exports.RampChain = exports.OfframpCurrency = exports.Environment = void 0;
4
25
  var Environment;
5
26
  (function (Environment) {
6
27
  Environment["DEVELOPMENT"] = "development";
7
28
  Environment["PRODUCTION"] = "production";
29
+ /**
30
+ * Sandbox — backed by https://sandbox.riftfi.com. This is the live
31
+ * non-custodial enclave deploy with the v3 PCR0 attested in KMS, the
32
+ * Google + Apple JWKS pinned, and the localhost / riftfi.xyz /
33
+ * riftfi.com WebAuthn RPs registered. Use this environment whenever
34
+ * you want to exercise the device-bound (v3) signing flows
35
+ * (Passkey or Google) end-to-end against the real attestation chain
36
+ * without touching production user funds.
37
+ *
38
+ * v3 is opt-in on a per-request basis (pass `enrolledMethods` at
39
+ * signup/migrate, `authProof` at send) so legacy v1/v2 flows keep
40
+ * working in sandbox too. Existing test users with v1/v2 envelopes
41
+ * are unaffected.
42
+ */
43
+ Environment["SANDBOX"] = "sandbox";
8
44
  })(Environment || (exports.Environment = Environment = {}));
9
45
  // Offramp Types
10
46
  var OfframpCurrency;
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AA2HA,IAAY,WAGX;AAHD,WAAY,WAAW;IACrB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;AAC3B,CAAC,EAHW,WAAW,2BAAX,WAAW,QAGtB;AAqBD,gBAAgB;AAChB,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;AACb,CAAC,EAVW,eAAe,+BAAf,eAAe,QAU1B;AAED,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAu7BD,iBAAiB;AACjB,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,iCAAqB,CAAA;AACvB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AA4TD,iBAAiB;AACjB,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,wEAAwE;AACxE,8CAA8C;AAC9C,wEAAwE;AACxE,EAAE;AACF,wBAAwB;AACxB,EAAE;AACF,wEAAwE;AACxE,wEAAwE;AACxE,wEAAwE;AACxE,uEAAuE;AACvE,EAAE;AACF,yEAAyE;AACzE,wEAAwE;AACxE,wEAAwE;AACxE,yEAAyE;AACzE,sEAAsE;AACtE,mBAAmB;AACnB,EAAE;AACF,mEAAmE;AACnE,sEAAsE;AACtE,kDAAkD;;;AAkLlD,IAAY,WAkBX;AAlBD,WAAY,WAAW;IACrB,0CAA2B,CAAA;IAC3B,wCAAyB,CAAA;IACzB;;;;;;;;;;;;;OAaG;IACH,kCAAmB,CAAA;AACrB,CAAC,EAlBW,WAAW,2BAAX,WAAW,QAkBtB;AAqBD,gBAAgB;AAChB,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;AACb,CAAC,EAVW,eAAe,+BAAf,eAAe,QAU1B;AAED,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;IACrB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB;AAED,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,0BAAa,CAAA;IACb,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAw9BD,iBAAiB;AACjB,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;IACjB,uBAAW,CAAA;IACX,iCAAqB,CAAA;AACvB,CAAC,EALW,QAAQ,wBAAR,QAAQ,QAKnB;AA4TD,iBAAiB;AACjB,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,oCAAmB,CAAA;AACrB,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rift-finance/wallet",
3
- "version": "1.4.34",
4
- "description": "Wallet module for Rift Finance SDK",
3
+ "version": "3.0.1",
4
+ "description": "Wallet module for Rift Finance SDK — v3 adds non-custodial signing via TEE-attested Passkey / OIDC ceremonies + the SANDBOX environment.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "scripts": {