@rhinestone/sdk 0.0.0-dev-20260728122705 → 0.0.0-dev-20260728134459
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recovery.d.ts","sourceRoot":"","sources":["../../../actions/recovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAW,MAAM,MAAM,CAAA;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"recovery.d.ts","sourceRoot":"","sources":["../../../actions/recovery.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAW,MAAM,MAAM,CAAA;AAC5C,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,mBAAmB,CAAA;AAsB1B,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,4BAA6B,SAAQ,kBAAkB;IACtE,qEAAqE;IACrE,SAAS,EAAE,sBAAsB,CAAA;CAClC;AAED,MAAM,WAAW,8BAA+B,SAAQ,kBAAkB;IACxE;;;;;;;;;OASG;IACH,kBAAkB,EAAE,SAAS,iBAAiB,EAAE,CAAA;IAChD,gCAAgC;IAChC,SAAS,EAAE,uBAAuB,CAAA;CACnC;AAED;;;;;;GAMG;AACH,iBAAS,MAAM,CAAC,SAAS,EAAE,OAAO,EAAE,EAAE,SAAS,SAAI,GAAG,aAAa,CAUlE;AAED;;;;;;;;;;;GAWG;AACH,iBAAe,qBAAqB,CAClC,OAAO,EAAE,4BAA4B,GACpC,OAAO,CAAC,aAAa,EAAE,CAAC,CA4C1B;AAED;;;;;;;;;;;GAWG;AACH,iBAAe,uBAAuB,CACpC,OAAO,EAAE,8BAA8B,GACtC,OAAO,CAAC,aAAa,EAAE,CAAC,CAiD1B;AAMD,OAAO,EAAE,MAAM,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OWNABLE_VALIDATOR_ADDRESS } from '../modules/validators/ownable.js';
|
|
2
2
|
import { resolveSocialRecoveryValidator } from '../modules/validators/social-recovery.js';
|
|
3
|
-
import { WEBAUTHN_VALIDATOR_ADDRESS } from '../modules/validators/webauthn.js';
|
|
3
|
+
import { parseWebauthnPublicKey, WEBAUTHN_VALIDATOR_ADDRESS, } from '../modules/validators/webauthn.js';
|
|
4
4
|
import { addOwner, changeThreshold, removeOwner } from './ecdsa.js';
|
|
5
5
|
import { addOwner as addPasskeyOwner, changeThreshold as changePasskeyThreshold, removeOwner as removePasskeyOwner, } from './passkeys.js';
|
|
6
6
|
import { readOwnershipFor, readThresholdFor, resolveValidatorInstallation, } from './runtime.js';
|
|
@@ -81,14 +81,10 @@ async function recoverEcdsaOwnership(options) {
|
|
|
81
81
|
async function recoverPasskeyOwnership(options) {
|
|
82
82
|
const existingThreshold = await readThresholdFor(options, options.accountAddress, WEBAUTHN_VALIDATOR_ADDRESS);
|
|
83
83
|
const newCredentials = options.newOwners.accounts.map((account) => {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return {
|
|
88
|
-
pubKeyX: BigInt(`0x${publicKey.slice(0, 64)}`),
|
|
89
|
-
pubKeyY: BigInt(`0x${publicKey.slice(64, 128)}`),
|
|
90
|
-
requireUV: false,
|
|
91
|
-
};
|
|
84
|
+
// Must go through the shared parser: uncompressed SEC1 keys are 65 bytes
|
|
85
|
+
// with an 0x04 prefix, and slicing from byte 0 shifts both coordinates.
|
|
86
|
+
const { x, y } = parseWebauthnPublicKey(account.publicKey);
|
|
87
|
+
return { pubKeyX: x, pubKeyY: y, requireUV: false };
|
|
92
88
|
});
|
|
93
89
|
const newThreshold = options.newOwners.threshold ?? 1;
|
|
94
90
|
const currentKeys = options.currentCredentials.map(credentialKey);
|
|
@@ -3,7 +3,7 @@ import { createOrchestratorAuth } from './auth.js';
|
|
|
3
3
|
import { ChainCatalog, parseChains } from './chain-catalog.js';
|
|
4
4
|
import { fetchOrchestratorJson } from './fetch.js';
|
|
5
5
|
import { mapIntentRequestToWire, mapIntentStatusFromWire, mapPortfolioFromWire, mapQuoteResponseFromWire, mapSignedIntentToWire, mapSplitRequestToWire, mapSplitResultFromWire, } from './mappers.js';
|
|
6
|
-
const SDK_VERSION = '0.0.0-dev-
|
|
6
|
+
const SDK_VERSION = '0.0.0-dev-20260728134459';
|
|
7
7
|
const API_VERSION = '2026-04.blanc';
|
|
8
8
|
export function createOrchestratorClient(options) {
|
|
9
9
|
const fetchPort = options.fetch ?? globalThis.fetch;
|