@oxy.so/core 1.0.0 → 1.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.
@@ -559,12 +559,14 @@ export declare class KeyManager {
559
559
  *
560
560
  * The domain separation is carried by `info` (e.g. `"oxypay/faircoin/v1"`),
561
561
  * so distinct apps/purposes get independent seeds from the same identity.
562
+ * That legacy Peable tag is a cryptographic contract and must not be renamed:
563
+ * changing it would derive a different wallet for every existing user.
562
564
  * The output is HKDF keying material, never the private key itself — a
563
- * consumer (e.g. Oxy Pay's FairCoin HD wallet) can feed it straight into
565
+ * consumer (e.g. Peable's FairCoin HD wallet) can feed it straight into
564
566
  * `HDKey.fromMasterSeed` and never touches the identity key.
565
567
  *
566
568
  * Key source (native only): prefers the shared ecosystem identity written to
567
- * `group.so.oxy.shared` (what a Relying Party like Oxy Pay reads), then falls
569
+ * `group.so.oxy.shared` (what a Relying Party like Peable reads), then falls
568
570
  * back to this device's primary identity (Commons/Accounts). Both reproduce
569
571
  * from the user's Oxy recovery phrase, so the derived seed is recoverable.
570
572
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxy.so/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "OxyHQ SDK Foundation — API client, authentication, cryptographic identity, and shared utilities",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -86,7 +86,7 @@
86
86
  "node": ">=18.0.0"
87
87
  },
88
88
  "scripts": {
89
- "build": "bun run build:cjs && bun run build:esm && bun run build:types && bun run copy-assets",
89
+ "build": "bun run build:cjs && bun run build:esm && bun run build:types && bun run copy-assets && node scripts/mark-module-formats.mjs",
90
90
  "copy-assets": "cp -r src/i18n/locales dist/cjs/i18n/locales && cp -r src/i18n/locales dist/esm/i18n/locales",
91
91
  "build:cjs": "tsc -p tsconfig.cjs.json",
92
92
  "build:esm": "tsc -p tsconfig.esm.json && node scripts/fix-esm-imports.mjs",
@@ -94,8 +94,9 @@
94
94
  "clean": "rm -rf dist",
95
95
  "typescript": "tsc --noEmit",
96
96
  "test": "jest --passWithNoTests",
97
+ "test:package": "node scripts/verify-package-formats.mjs",
97
98
  "lint": "biome lint --error-on-warnings ./src",
98
- "prepublishOnly": "node ../../scripts/assert-bun-publish.mjs && bun run clean && bun run build",
99
+ "prepublishOnly": "node ../../scripts/assert-bun-publish.mjs && bun run clean && bun run build && bun run test:package",
99
100
  "release": "rm -rf dist && bun run build && release-it",
100
101
  "generate:display-name-policy": "node scripts/generateDisplayNamePolicyRanges.mjs"
101
102
  },
@@ -117,8 +118,8 @@
117
118
  "@oxy.so/telemetry": "^1.0.0",
118
119
  "@noble/ciphers": "^1.3.0",
119
120
  "@noble/hashes": "^1.8.0",
120
- "@oxy.so/contracts": "^1.0.0",
121
- "@oxy.so/protocol": "^1.0.0",
121
+ "@oxy.so/contracts": "^1.0.1",
122
+ "@oxy.so/protocol": "^1.0.1",
122
123
  "@scure/bip39": "^1.6.0",
123
124
  "buffer": "^6.0.3",
124
125
  "express-rate-limit": "^8.6.0",
@@ -146,7 +146,7 @@ export type IdentityRecoveryResult =
146
146
  /**
147
147
  * HKDF salt that domain-separates every identity-scoped seed produced by
148
148
  * {@link KeyManager.deriveScopedSeed}. Versioned so a future scheme change is a
149
- * new, non-colliding tag. The per-app domain (e.g. Oxy Pay's FairCoin wallet)
149
+ * new, non-colliding tag. The per-app domain (e.g. Peable's FairCoin wallet)
150
150
  * is carried by the caller's `info` string, not this salt.
151
151
  */
152
152
  const SCOPED_SEED_KDF_SALT = 'oxy-identity-scoped-seed-v1';
@@ -2567,12 +2567,14 @@ export class KeyManager {
2567
2567
  *
2568
2568
  * The domain separation is carried by `info` (e.g. `"oxypay/faircoin/v1"`),
2569
2569
  * so distinct apps/purposes get independent seeds from the same identity.
2570
+ * That legacy Peable tag is a cryptographic contract and must not be renamed:
2571
+ * changing it would derive a different wallet for every existing user.
2570
2572
  * The output is HKDF keying material, never the private key itself — a
2571
- * consumer (e.g. Oxy Pay's FairCoin HD wallet) can feed it straight into
2573
+ * consumer (e.g. Peable's FairCoin HD wallet) can feed it straight into
2572
2574
  * `HDKey.fromMasterSeed` and never touches the identity key.
2573
2575
  *
2574
2576
  * Key source (native only): prefers the shared ecosystem identity written to
2575
- * `group.so.oxy.shared` (what a Relying Party like Oxy Pay reads), then falls
2577
+ * `group.so.oxy.shared` (what a Relying Party like Peable reads), then falls
2576
2578
  * back to this device's primary identity (Commons/Accounts). Both reproduce
2577
2579
  * from the user's Oxy recovery phrase, so the derived seed is recoverable.
2578
2580
  *
@@ -2604,4 +2606,3 @@ export class KeyManager {
2604
2606
  }
2605
2607
 
2606
2608
  export default KeyManager;
2607
-
@@ -1412,7 +1412,7 @@
1412
1412
  },
1413
1413
  "details": {
1414
1414
  "cardDetails": "Card Details",
1415
- "oxyPay": "Oxy Pay",
1415
+ "peable": "Peable",
1416
1416
  "faircoinPayment": "FairCoin Payment",
1417
1417
  "paymentDetails": "Payment Details",
1418
1418
  "creditCard": "Credit Card",
@@ -1438,7 +1438,7 @@
1438
1438
  "amount": "Amount",
1439
1439
  "paymentMethod": "Payment Method",
1440
1440
  "card": "Card",
1441
- "oxyPayAccount": "Oxy Pay Account",
1441
+ "peableAccount": "Peable Account",
1442
1442
  "faircoinWallet": "FairCoin Wallet",
1443
1443
  "paidViaQR": "Paid via QR",
1444
1444
  "processing": "Processing...",
@@ -1465,8 +1465,8 @@
1465
1465
  "description": "Pay securely with your credit or debit card."
1466
1466
  },
1467
1467
  "oxy": {
1468
- "label": "Oxy Pay",
1469
- "description": "Use your Oxy Pay in-app balance."
1468
+ "label": "Peable",
1469
+ "description": "Use your Peable in-app balance."
1470
1470
  },
1471
1471
  "faircoin": {
1472
1472
  "label": "FAIRWallet",
@@ -1412,7 +1412,7 @@
1412
1412
  },
1413
1413
  "details": {
1414
1414
  "cardDetails": "Detalles de la tarjeta",
1415
- "oxyPay": "Oxy Pay",
1415
+ "peable": "Peable",
1416
1416
  "faircoinPayment": "Pago con FairCoin",
1417
1417
  "paymentDetails": "Detalles del pago",
1418
1418
  "creditCard": "Tarjeta de crédito",
@@ -1438,7 +1438,7 @@
1438
1438
  "amount": "Monto",
1439
1439
  "paymentMethod": "Método de pago",
1440
1440
  "card": "Tarjeta",
1441
- "oxyPayAccount": "Cuenta Oxy Pay",
1441
+ "peableAccount": "Cuenta Peable",
1442
1442
  "faircoinWallet": "Billetera FairCoin",
1443
1443
  "paidViaQR": "Pagado vía QR",
1444
1444
  "processing": "Procesando...",
@@ -1465,8 +1465,8 @@
1465
1465
  "description": "Paga de forma segura con tu tarjeta de crédito o débito."
1466
1466
  },
1467
1467
  "oxy": {
1468
- "label": "Oxy Pay",
1469
- "description": "Usa tu saldo de Oxy Pay en la app."
1468
+ "label": "Peable",
1469
+ "description": "Usa tu saldo de Peable en la app."
1470
1470
  },
1471
1471
  "faircoin": {
1472
1472
  "label": "FAIRWallet",