@opendatalabs/vana-sdk 3.21.0 → 3.22.0-pr.207.5c11fe3
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 +64 -0
- package/dist/index.browser.d.ts +3 -1
- package/dist/index.browser.js +343 -4
- package/dist/index.browser.js.map +4 -4
- package/dist/index.node.cjs +386 -34
- package/dist/index.node.cjs.map +4 -4
- package/dist/index.node.d.ts +3 -1
- package/dist/index.node.js +346 -7
- package/dist/index.node.js.map +4 -4
- package/dist/protocol/derivative-questions.cjs +22 -0
- package/dist/protocol/derivative-questions.cjs.map +1 -1
- package/dist/protocol/derivative-questions.d.ts +53 -0
- package/dist/protocol/derivative-questions.js +19 -0
- package/dist/protocol/derivative-questions.js.map +1 -1
- package/dist/protocol/derivative-status.cjs +209 -0
- package/dist/protocol/derivative-status.cjs.map +1 -0
- package/dist/protocol/derivative-status.d.ts +196 -0
- package/dist/protocol/derivative-status.js +190 -0
- package/dist/protocol/derivative-status.js.map +1 -0
- package/dist/protocol/derivative-status.test.d.ts +1 -0
- package/dist/protocol/identity.cjs +191 -0
- package/dist/protocol/identity.cjs.map +1 -0
- package/dist/protocol/identity.d.ts +164 -0
- package/dist/protocol/identity.js +155 -0
- package/dist/protocol/identity.js.map +1 -0
- package/dist/protocol/identity.test.d.ts +1 -0
- package/dist/tests/mock-personal-server.d.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -621,6 +621,70 @@ These helpers require `personal-server-ts` main `d91124d` or later, which is
|
|
|
621
621
|
where the query-in-the-signed-uri rule, the `nonce` claim, the 404 for an
|
|
622
622
|
unknown id and the full-view `recompute` answer landed.
|
|
623
623
|
|
|
624
|
+
### Watching a derived scope as the reader
|
|
625
|
+
|
|
626
|
+
The helpers above are the builder's: every one of them needs a write session,
|
|
627
|
+
which an app holding only a bare read entry on the derived scope cannot open.
|
|
628
|
+
That reader sees `GET /v1/data/<derivedScope>` answer 404 whether the compute
|
|
629
|
+
is running, retrying, or finished failing.
|
|
630
|
+
|
|
631
|
+
`getDerivativeStatus` is the reader's view of the same question. It
|
|
632
|
+
authenticates like a data read — a live grant covering the derived scope, or
|
|
633
|
+
the owner — and nothing is charged, so a priced grant raises no 402 here.
|
|
634
|
+
|
|
635
|
+
```typescript
|
|
636
|
+
import {
|
|
637
|
+
getDerivativeStatus,
|
|
638
|
+
waitForDerivativeStatus,
|
|
639
|
+
} from "@opendatalabs/vana-sdk";
|
|
640
|
+
|
|
641
|
+
const status = await getDerivativeStatus({
|
|
642
|
+
personalServerUrl: "https://ps.example.com",
|
|
643
|
+
derivedScope: "coach.weekly",
|
|
644
|
+
grantId,
|
|
645
|
+
signer,
|
|
646
|
+
});
|
|
647
|
+
// { derivedScope, status, lastComputedAt, derivedVersion,
|
|
648
|
+
// derivedCollectedAt, errorCode, retryAfterSeconds }
|
|
649
|
+
|
|
650
|
+
const settled = await waitForDerivativeStatus({
|
|
651
|
+
personalServerUrl: "https://ps.example.com",
|
|
652
|
+
derivedScope: "coach.weekly",
|
|
653
|
+
grantId,
|
|
654
|
+
signer,
|
|
655
|
+
timeoutMs: 60_000,
|
|
656
|
+
});
|
|
657
|
+
```
|
|
658
|
+
|
|
659
|
+
The view is lifecycle only: the question text, the source scopes, the question
|
|
660
|
+
id, the registrar and the server's raw `error` string stay owner-only.
|
|
661
|
+
`errorCode` is a closed vocabulary — `inference_unavailable`,
|
|
662
|
+
`source_missing`, `grant_invalid`, `internal` — and is `null` unless `status`
|
|
663
|
+
is `failed`.
|
|
664
|
+
|
|
665
|
+
`retryAfterSeconds` is what separates a failure that is still being worked on
|
|
666
|
+
from one that is over: `inference_unavailable` is the one transient class, and
|
|
667
|
+
the Personal Server retries it on its own schedule. `waitForDerivativeStatus`
|
|
668
|
+
returns as soon as the scope is `ready` or has failed with no retry pending,
|
|
669
|
+
keeps waiting through a retrying failure, and takes the server's
|
|
670
|
+
`retryAfterSeconds` as the cadence in place of `pollIntervalMs`, longer or
|
|
671
|
+
shorter — it is when the next compute actually happens, so asking sooner sees
|
|
672
|
+
nothing new and asking later sits on an answer that already exists. Once the
|
|
673
|
+
remaining budget cannot cover the next cadence it raises the timeout rather
|
|
674
|
+
than spending one more request that cannot carry new data. `signal` aborts
|
|
675
|
+
the wait and the request in flight with it. A failed status is returned, not thrown; branch
|
|
676
|
+
on `errorCode`. `isDerivativeStatusSettled` is the same predicate, exported
|
|
677
|
+
for callers that poll on their own.
|
|
678
|
+
|
|
679
|
+
When several questions write the same derived scope, the most optimistic true
|
|
680
|
+
state answers (`ready`, then `stale`, then `pending`, then `failed`), because
|
|
681
|
+
serving data is registration-agnostic: a duplicate that never wrote anything
|
|
682
|
+
must not report away an answer the scope has.
|
|
683
|
+
|
|
684
|
+
The status route needs a Personal Server that ships it; an older one answers
|
|
685
|
+
404 for the route itself, which arrives as `DerivativeQuestionNotFoundError`
|
|
686
|
+
— the same error as a covered scope with no question behind it.
|
|
687
|
+
|
|
624
688
|
## Networks
|
|
625
689
|
|
|
626
690
|
| Network | Chain ID | RPC URL |
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -37,6 +37,7 @@ export { parseWeb3SignedHeader, verifyWeb3Signed, type Web3SignedPayload, type V
|
|
|
37
37
|
export { buildWeb3SignedHeader, computeBodyHash, type Web3SignedSignFn, } from "./auth/web3-signed-builder.js";
|
|
38
38
|
export { MissingAuthError, InvalidSignatureError, ExpiredTokenError, } from "./auth/errors.js";
|
|
39
39
|
export { NATIVE_VANA_ASSET, dataRegistryDomain, grantRegistrationDomain, grantRevocationDomain, serverRegistrationDomain, builderRegistrationDomain, escrowPaymentDomain, GRANT_REGISTRATION_TYPES, GRANT_REVOCATION_TYPES, SERVER_REGISTRATION_TYPES, BUILDER_REGISTRATION_TYPES, ADD_DATA_TYPES, RECORD_DATA_ACCESS_TYPES, type DataPortabilityContracts, type DataPortabilityGatewayConfig, type GrantRegistrationMessage, type GrantRevocationMessage, type ServerRegistrationMessage, type BuilderRegistrationMessage, type AddDataMessage, type RecordDataAccessMessage, } from "./protocol/eip712.js";
|
|
40
|
+
export { ENCLAVE_IDENTITY_EVIDENCE_VERSION, USER_PS_ID_DOMAIN, ENCLAVE_WALLET_PURPOSE, MASTER_SIGNATURE_DELIVERY_VERSION, SEALED_ENVELOPE_VERSION, ENCLAVE_TRUST_ANCHORS, userPsId, appRootPreimage, kmsIssuedPreimage, verifyEnclaveIdentityEvidence, buildMasterSignatureDelivery, encryptMasterSignatureDelivery, type UserPsId, type EnclaveIdentityEvidence, type ExpectedIdentity, type IdentityRequest, type IdentityState, type IdentityResponse, type IdentityRegistrationRequest, type IdentityRegistrationResponse, type MasterSignatureDelivery, type SealedSecretSubmission, type SealedSecretResponse, type AesGcmBox, type SealedEnvelope, type EnclaveTrustAnchors, } from "./protocol/identity.js";
|
|
40
41
|
export { PERSONAL_SERVER_REGISTRATION_DEFAULT_CHAIN_ID, PERSONAL_SERVER_REGISTRATION_DEFAULT_VERIFYING_CONTRACT, personalServerRegistrationDomain, createViemPersonalServerRegistrationSigner, buildPersonalServerRegistrationTypedData, buildPersonalServerRegistrationSignature, registerPersonalServerSignature, type PersonalServerRegistrationTypedData, type PersonalServerRegistrationSigner, type PersonalServerRegistrationDomainInput, type ViemPersonalServerRegistrationWalletClient, type ViemPersonalServerRegistrationSignerSource, type BuildPersonalServerRegistrationTypedDataInput, type BuildPersonalServerRegistrationSignatureInput, type PersonalServerRegistrationSignature, } from "./protocol/personal-server-registration.js";
|
|
41
42
|
export { PERSONAL_SERVER_LITE_OWNER_BINDING_VERSION, PERSONAL_SERVER_LITE_OWNER_BINDING_PURPOSE, PERSONAL_SERVER_LITE_OWNER_BINDING_PREFIX, buildPersonalServerLiteOwnerBindingMessage, createViemPersonalServerLiteOwnerBindingSigner, buildPersonalServerLiteOwnerBindingSignature, signPersonalServerLiteOwnerBinding, type PersonalServerLiteOwnerBindingPurpose, type PersonalServerLiteOwnerBindingMessage, type PersonalServerLiteOwnerBindingSigner, type ViemPersonalServerLiteOwnerBindingWalletClient, type ViemPersonalServerLiteOwnerBindingSignerSource, type BuildPersonalServerLiteOwnerBindingSignatureInput, type PersonalServerLiteOwnerBindingSignature, } from "./personal-server-lite/owner-binding.js";
|
|
42
43
|
export { ACCOUNT_PERSONAL_SERVER_REGISTRATION_INTENT, AccountPersonalServerRegistrationError, signPersonalServerRegistrationWithAccount, type AccountPersonalServerRegistrationIntent, type AccountPersonalServerRegistrationSignature, type AccountPersonalServerRegistrationStatus, type AccountPersonalServerRegistrationRequest, type AccountPersonalServerRegistrationConfig, type AccountSignedPersonalServerRegistration, type AccountConfirmationRequiredPersonalServerRegistration, type AccountFallbackSignedPersonalServerRegistration, type AccountPersonalServerRegistrationResult, } from "./account/personal-server-registration.js";
|
|
@@ -51,7 +52,8 @@ export { ScopeSchema, parseScope, scopeToPathSegments, scopeMatchesPattern, scop
|
|
|
51
52
|
export { SCOPE_ACTIONS, InvalidScopeEntryError, parseScopeEntry, formatScopeEntry, grantPermissions, permissionsToScopes, tryGrantPermissions, hasAction, type ScopeAction, type ParsedScopeEntry, type GrantPermission, } from "./protocol/scope-actions.js";
|
|
52
53
|
export { WRITE_SESSION_PATH, WRITE_SIGNATURE_HEADER, WRITE_METADATA_HEADER, WRITE_FILENAME_HEADER, WRITE_CONTENT_DISPOSITION_HEADER, WRITER_ATTRIBUTION_KEY, LINEAGE_KEY, LINEAGE_FIELD, MAX_LINEAGE_SOURCES, RESERVED_WRITE_KEYS, openWriteSession, writeData, writePersonalServerData, sessionCoversScope, binaryWriteSignedBytes, normalizeBinaryMimeType, parseWriteMetadataHeader, encodeWriteMetadataHeader, type WriteTransportRetryOptions, type WriteSession, type OpenWriteSessionParams, type WriteBinaryPayload, type LineageSource, type WriteJsonDataParams, type WriteBinaryDataParams, type WriteDataParams, type WriteDataResult, type WritePersonalServerDataParams, type WritePersonalServerDataResult, type BinaryWriteSignedBytesInput, } from "./protocol/personal-server-write.js";
|
|
53
54
|
export { resolveWriteSigner, type WriteSigner, type WriteSignerSource, type ViemWriteAccount, type ViemWriteWalletClient, type ResolveWriteSignerOptions, } from "./protocol/write-signer.js";
|
|
54
|
-
export { DERIVATIVE_QUESTIONS_PATH, MAX_QUESTION_SOURCE_SCOPES, MAX_QUESTION_CHARS, MAX_QUESTION_MODEL_CHARS, DEFAULT_QUESTION_TIMEOUT_MS, DEFAULT_QUESTION_POLL_INTERVAL_MS, QUESTION_STATUSES, registerQuestion, getQuestion, listQuestions, recomputeQuestion, deleteQuestion, waitForQuestion, askPersonalServer, QuestionStatusSchema, QuestionRegisteredBySchema, DerivativeQuestionSchema, QuestionRecomputeResultSchema, QuestionDeleteResultSchema, type QuestionStatus, type QuestionRegisteredBy, type DerivativeQuestion, type QuestionRecomputeResult, type QuestionDeleteResult, type DerivativeQuestionAuthParams, type RegisterQuestionParams, type GetQuestionParams, type ListQuestionsParams, type RecomputeQuestionParams, type DeleteQuestionParams, type WaitForQuestionParams, type AskPersonalServerParams, type AskPersonalServerResult, } from "./protocol/derivative-questions.js";
|
|
55
|
+
export { DERIVATIVE_QUESTIONS_PATH, MAX_QUESTION_SOURCE_SCOPES, MAX_QUESTION_CHARS, MAX_QUESTION_MODEL_CHARS, DEFAULT_QUESTION_TIMEOUT_MS, DEFAULT_QUESTION_POLL_INTERVAL_MS, QUESTION_STATUSES, DERIVATIVE_ERROR_CODES, DerivativeErrorCodeSchema, type DerivativeErrorCode, registerQuestion, getQuestion, listQuestions, recomputeQuestion, deleteQuestion, waitForQuestion, askPersonalServer, QuestionStatusSchema, QuestionRegisteredBySchema, DerivativeQuestionSchema, QuestionRecomputeResultSchema, QuestionDeleteResultSchema, type QuestionStatus, type QuestionRegisteredBy, type DerivativeQuestion, type QuestionRecomputeResult, type QuestionDeleteResult, type DerivativeQuestionAuthParams, type RegisterQuestionParams, type GetQuestionParams, type ListQuestionsParams, type RecomputeQuestionParams, type DeleteQuestionParams, type WaitForQuestionParams, type AskPersonalServerParams, type AskPersonalServerResult, } from "./protocol/derivative-questions.js";
|
|
56
|
+
export { DERIVATIVE_STATUS_PATH, DEFAULT_DERIVATIVE_STATUS_TIMEOUT_MS, DEFAULT_DERIVATIVE_STATUS_POLL_INTERVAL_MS, derivativeStatusTarget, getDerivativeStatus, waitForDerivativeStatus, isDerivativeStatusSettled, DerivativeStatusSchema, type DerivativeStatus, type GetDerivativeStatusParams, type WaitForDerivativeStatusParams, } from "./protocol/derivative-status.js";
|
|
55
57
|
export { deriveDataPointId, isDataPointId, scopeNamespace, derivedScopeViolatesNaming, assertDerivedScopeNaming, isRedactedLineageNode, personalServerLineagePath, gatewayLineagePath, getLineage, getPersonalServerLineage, getGatewayLineage, LineageNodeSchema, RedactedLineageNodeSchema, LineageEntrySchema, LineageGraphSchema, type LineageNode, type RedactedLineageNode, type LineageEntry, type LineageGraph, type LineageReadResult, type PersonalServerLineageParams, type GatewayLineageParams, type GetLineageParams, } from "./protocol/lineage.js";
|
|
56
58
|
export { DataFileEnvelopeSchema, createDataFileEnvelope, IngestResponseSchema, type DataFileEnvelope, type IngestResponse, } from "./protocol/data-file.js";
|
|
57
59
|
export { createGatewayClient, type GatewayEnvelope, type GatewayProof, type Builder, type Schema, type ServerInfo, type OwnerServerRecord, type OwnerServersResult, type GatewayGrantFee, type GatewayGrantStatus, type GatewayGrantResponse, type GrantListItem, type DataPointRecord, type DataPointListResult, type ListDataPointsOptions, type RegisterServerParams, type RegisterServerResult, type RegisterBuilderParams, type RegisterBuilderResult, type RegisterDataPointParams, type RegisterDataPointResult, type GetDataPointOptions, type DeleteDataPointParams, type DeleteDataPointResult, type CreateGrantParams, type RevokeGrantParams, type AccessRecord, type PayForOperationParams, type PayForOperationResult, type SettleOpType, type SettleItem, type SettlePromoteResult, type SettleReconcileItem, type SettleParams, type SettleResult, type GatewayClient, } from "./protocol/gateway.js";
|
package/dist/index.browser.js
CHANGED
|
@@ -31736,6 +31736,147 @@ var RECORD_DATA_ACCESS_TYPES = {
|
|
|
31736
31736
|
]
|
|
31737
31737
|
};
|
|
31738
31738
|
|
|
31739
|
+
// src/protocol/identity.ts
|
|
31740
|
+
init_interface();
|
|
31741
|
+
import * as secp256k13 from "@noble/secp256k1";
|
|
31742
|
+
import {
|
|
31743
|
+
concat as concat4,
|
|
31744
|
+
encodePacked,
|
|
31745
|
+
fromHex as fromHex5,
|
|
31746
|
+
getAddress,
|
|
31747
|
+
isAddressEqual,
|
|
31748
|
+
keccak256,
|
|
31749
|
+
recoverPublicKey,
|
|
31750
|
+
toBytes
|
|
31751
|
+
} from "viem";
|
|
31752
|
+
import { publicKeyToAddress } from "viem/accounts";
|
|
31753
|
+
var ENCLAVE_IDENTITY_EVIDENCE_VERSION = 1;
|
|
31754
|
+
var USER_PS_ID_DOMAIN = "vana.ps-enclave.v1";
|
|
31755
|
+
var ENCLAVE_WALLET_PURPOSE = "vana.ps-enclave.wallet.v1";
|
|
31756
|
+
var MASTER_SIGNATURE_DELIVERY_VERSION = "vana.ps-enclave.delivery.v1";
|
|
31757
|
+
var SEALED_ENVELOPE_VERSION = 1;
|
|
31758
|
+
var VANA_MAINNET_CHAIN_ID = 1480;
|
|
31759
|
+
var MOKSHA_CHAIN_ID = 14800;
|
|
31760
|
+
var KMS_ISSUED_PREFIX = "dstack-kms-issued";
|
|
31761
|
+
var PREIMAGE_SEPARATOR = ":";
|
|
31762
|
+
var UNCOMPRESSED_PUBLIC_KEY_BYTES = 65;
|
|
31763
|
+
var UNCOMPRESSED_PUBLIC_KEY_PREFIX = "04";
|
|
31764
|
+
var ENCLAVE_TRUST_ANCHORS = {
|
|
31765
|
+
// filled at fleet provisioning; verify fails closed while empty
|
|
31766
|
+
[VANA_MAINNET_CHAIN_ID]: { kmsRootPubkey: "0x", appIds: [] },
|
|
31767
|
+
// filled at fleet provisioning; verify fails closed while empty
|
|
31768
|
+
[MOKSHA_CHAIN_ID]: { kmsRootPubkey: "0x", appIds: [] }
|
|
31769
|
+
};
|
|
31770
|
+
function userPsId(chainId, ownerAddress) {
|
|
31771
|
+
const packed = encodePacked(
|
|
31772
|
+
["string", "uint256", "address"],
|
|
31773
|
+
[USER_PS_ID_DOMAIN, BigInt(chainId), getAddress(ownerAddress)]
|
|
31774
|
+
);
|
|
31775
|
+
return keccak256(packed);
|
|
31776
|
+
}
|
|
31777
|
+
function appRootPreimage(purpose, publicKey) {
|
|
31778
|
+
const keyHex = publicKey.slice(2).toLowerCase();
|
|
31779
|
+
return keccak256(toBytes(`${purpose}${PREIMAGE_SEPARATOR}${keyHex}`));
|
|
31780
|
+
}
|
|
31781
|
+
function kmsIssuedPreimage(appId, appRootPublicKey) {
|
|
31782
|
+
const appIdHex = appId.slice(2).toLowerCase();
|
|
31783
|
+
const prefix = toBytes(
|
|
31784
|
+
`${KMS_ISSUED_PREFIX}${PREIMAGE_SEPARATOR}${appIdHex}`
|
|
31785
|
+
);
|
|
31786
|
+
const compressed = secp256k13.ProjectivePoint.fromHex(
|
|
31787
|
+
fromHex5(appRootPublicKey, "bytes")
|
|
31788
|
+
).toRawBytes(true);
|
|
31789
|
+
return keccak256(concat4([prefix, compressed]));
|
|
31790
|
+
}
|
|
31791
|
+
async function recoverChainKey(hash, signature, link) {
|
|
31792
|
+
try {
|
|
31793
|
+
return (await recoverPublicKey({ hash, signature })).toLowerCase();
|
|
31794
|
+
} catch {
|
|
31795
|
+
throw new Error(`Invalid enclave signature chain link ${link}`);
|
|
31796
|
+
}
|
|
31797
|
+
}
|
|
31798
|
+
async function verifyEnclaveIdentityEvidence(evidence, anchors, expected) {
|
|
31799
|
+
if (evidence.v !== ENCLAVE_IDENTITY_EVIDENCE_VERSION) {
|
|
31800
|
+
throw new Error("Unsupported enclave identity evidence version");
|
|
31801
|
+
}
|
|
31802
|
+
if (!Number.isInteger(evidence.epoch) || evidence.epoch < 1) {
|
|
31803
|
+
throw new Error("Invalid enclave identity epoch");
|
|
31804
|
+
}
|
|
31805
|
+
if (evidence.chainId !== expected.chainId) {
|
|
31806
|
+
throw new Error(
|
|
31807
|
+
"Enclave identity chain ID does not match expected chain ID"
|
|
31808
|
+
);
|
|
31809
|
+
}
|
|
31810
|
+
if (!isAddressEqual(evidence.ownerAddress, expected.ownerAddress)) {
|
|
31811
|
+
throw new Error("Enclave identity owner does not match expected owner");
|
|
31812
|
+
}
|
|
31813
|
+
if (evidence.epoch !== expected.epoch) {
|
|
31814
|
+
throw new Error("Enclave identity epoch does not match expected epoch");
|
|
31815
|
+
}
|
|
31816
|
+
const expectedUserPsId = userPsId(expected.chainId, expected.ownerAddress);
|
|
31817
|
+
if (evidence.userPsId.toLowerCase() !== expectedUserPsId.toLowerCase()) {
|
|
31818
|
+
throw new Error("Enclave userPsId does not match expected identity");
|
|
31819
|
+
}
|
|
31820
|
+
if (evidence.purpose !== ENCLAVE_WALLET_PURPOSE) {
|
|
31821
|
+
throw new Error("Unexpected enclave wallet purpose");
|
|
31822
|
+
}
|
|
31823
|
+
const derivedAddress = publicKeyToAddress(evidence.publicKey);
|
|
31824
|
+
if (getAddress(derivedAddress) !== getAddress(evidence.address)) {
|
|
31825
|
+
throw new Error("Enclave public key does not match its address");
|
|
31826
|
+
}
|
|
31827
|
+
const appRootPublicKey = await recoverChainKey(
|
|
31828
|
+
appRootPreimage(evidence.purpose, evidence.publicKey),
|
|
31829
|
+
evidence.signatureChain[0],
|
|
31830
|
+
0
|
|
31831
|
+
);
|
|
31832
|
+
const kmsRootPublicKey = await recoverChainKey(
|
|
31833
|
+
kmsIssuedPreimage(evidence.appId, appRootPublicKey),
|
|
31834
|
+
evidence.signatureChain[1],
|
|
31835
|
+
1
|
|
31836
|
+
);
|
|
31837
|
+
if (anchors.kmsRootPubkey === "0x") {
|
|
31838
|
+
throw new Error("KMS root trust anchor is not provisioned");
|
|
31839
|
+
}
|
|
31840
|
+
if (kmsRootPublicKey !== anchors.kmsRootPubkey.toLowerCase()) {
|
|
31841
|
+
throw new Error("KMS root public key does not match the trust anchor");
|
|
31842
|
+
}
|
|
31843
|
+
if (keccak256(kmsRootPublicKey) !== evidence.kmsRootFingerprint.toLowerCase()) {
|
|
31844
|
+
throw new Error("KMS root fingerprint does not match the evidence");
|
|
31845
|
+
}
|
|
31846
|
+
const appId = evidence.appId.toLowerCase();
|
|
31847
|
+
if (!anchors.appIds.some((allowedAppId) => allowedAppId.toLowerCase() === appId)) {
|
|
31848
|
+
throw new Error("Enclave app ID is not trusted");
|
|
31849
|
+
}
|
|
31850
|
+
}
|
|
31851
|
+
async function buildMasterSignatureDelivery(evidence, masterSignature, now = Math.floor(Date.now() / 1e3)) {
|
|
31852
|
+
deriveMasterKey(masterSignature);
|
|
31853
|
+
const signerAddress = await recoverServerOwner(masterSignature);
|
|
31854
|
+
if (!isAddressEqual(signerAddress, evidence.ownerAddress)) {
|
|
31855
|
+
throw new Error("Master signature signer does not match evidence owner");
|
|
31856
|
+
}
|
|
31857
|
+
return {
|
|
31858
|
+
v: MASTER_SIGNATURE_DELIVERY_VERSION,
|
|
31859
|
+
userPsId: evidence.userPsId,
|
|
31860
|
+
epoch: evidence.epoch,
|
|
31861
|
+
enclaveAddress: evidence.address,
|
|
31862
|
+
ownerAddress: evidence.ownerAddress,
|
|
31863
|
+
masterSignature,
|
|
31864
|
+
issuedAt: now
|
|
31865
|
+
};
|
|
31866
|
+
}
|
|
31867
|
+
function assertUncompressedKey(publicKey) {
|
|
31868
|
+
const hex = publicKey.slice(2);
|
|
31869
|
+
if (hex.length !== UNCOMPRESSED_PUBLIC_KEY_BYTES * 2 || !hex.startsWith(UNCOMPRESSED_PUBLIC_KEY_PREFIX) || !/^[0-9a-fA-F]+$/.test(hex)) {
|
|
31870
|
+
throw new Error("Public key must be a 65-byte uncompressed secp256k1 key");
|
|
31871
|
+
}
|
|
31872
|
+
}
|
|
31873
|
+
async function encryptMasterSignatureDelivery(delivery, publicKey, ecies) {
|
|
31874
|
+
assertUncompressedKey(publicKey);
|
|
31875
|
+
const plaintext = toBytes(JSON.stringify(delivery));
|
|
31876
|
+
const encrypted = await ecies.encrypt(fromHex5(publicKey, "bytes"), plaintext);
|
|
31877
|
+
return `0x${serializeECIES(encrypted)}`;
|
|
31878
|
+
}
|
|
31879
|
+
|
|
31739
31880
|
// src/protocol/personal-server-registration.ts
|
|
31740
31881
|
import {
|
|
31741
31882
|
isAddress
|
|
@@ -32435,7 +32576,7 @@ function buildMarkDataPointUnavailableRequest(config, input) {
|
|
|
32435
32576
|
// src/protocol/data-point-deletion.ts
|
|
32436
32577
|
import {
|
|
32437
32578
|
isAddress as isAddress5,
|
|
32438
|
-
keccak256 as
|
|
32579
|
+
keccak256 as keccak2563,
|
|
32439
32580
|
maxUint256,
|
|
32440
32581
|
stringToBytes as stringToBytes3
|
|
32441
32582
|
} from "viem";
|
|
@@ -32444,7 +32585,7 @@ import {
|
|
|
32444
32585
|
import {
|
|
32445
32586
|
encodeAbiParameters,
|
|
32446
32587
|
isAddress as isAddress4,
|
|
32447
|
-
keccak256
|
|
32588
|
+
keccak256 as keccak2562
|
|
32448
32589
|
} from "viem";
|
|
32449
32590
|
import { z } from "zod";
|
|
32450
32591
|
|
|
@@ -32528,7 +32669,7 @@ function deriveDataPointId(ownerAddress, scope) {
|
|
|
32528
32669
|
`ownerAddress is not an EVM address: ${String(ownerAddress)}`
|
|
32529
32670
|
);
|
|
32530
32671
|
}
|
|
32531
|
-
return
|
|
32672
|
+
return keccak2562(
|
|
32532
32673
|
encodeAbiParameters(
|
|
32533
32674
|
[
|
|
32534
32675
|
{ name: "ownerAddress", type: "address" },
|
|
@@ -32755,7 +32896,7 @@ var TOMBSTONE_METADATA_HASH_PREIMAGE = "vana.data-point.tombstone.metadata.v1";
|
|
|
32755
32896
|
var TOMBSTONE_DATA_HASH = "0x30c45ee72fe56d1927701316925ab7ceacd3b6f9267061735d59396f075c6222";
|
|
32756
32897
|
var TOMBSTONE_METADATA_HASH = "0xc5255a141acd6a2ae55971b62c0a85977c2511989dc114ad2abc2b7644f57d90";
|
|
32757
32898
|
function computeTombstoneHash(preimage) {
|
|
32758
|
-
return
|
|
32899
|
+
return keccak2563(stringToBytes3(preimage));
|
|
32759
32900
|
}
|
|
32760
32901
|
function isTombstoneHashes(dataHash, metadataHash) {
|
|
32761
32902
|
return typeof dataHash === "string" && typeof metadataHash === "string" && dataHash.toLowerCase() === TOMBSTONE_DATA_HASH && metadataHash.toLowerCase() === TOMBSTONE_METADATA_HASH;
|
|
@@ -33777,6 +33918,13 @@ var QUESTION_STATUSES = [
|
|
|
33777
33918
|
"failed",
|
|
33778
33919
|
"stale"
|
|
33779
33920
|
];
|
|
33921
|
+
var DERIVATIVE_ERROR_CODES = [
|
|
33922
|
+
"inference_unavailable",
|
|
33923
|
+
"source_missing",
|
|
33924
|
+
"grant_invalid",
|
|
33925
|
+
"internal"
|
|
33926
|
+
];
|
|
33927
|
+
var DerivativeErrorCodeSchema = z5.enum(DERIVATIVE_ERROR_CODES);
|
|
33780
33928
|
var QuestionStatusSchema = z5.enum(QUESTION_STATUSES);
|
|
33781
33929
|
var QuestionRegisteredBySchema = z5.union([
|
|
33782
33930
|
z5.object({ kind: z5.literal("owner") }),
|
|
@@ -33798,6 +33946,14 @@ var DerivativeQuestionSchema = z5.object({
|
|
|
33798
33946
|
status: QuestionStatusSchema,
|
|
33799
33947
|
/** A short reason, set only while `status` is `failed`. */
|
|
33800
33948
|
error: nullableString,
|
|
33949
|
+
/**
|
|
33950
|
+
* The coarse failure class behind `error`, set only while `status` is
|
|
33951
|
+
* `failed`. `null` from a Personal Server that predates the class
|
|
33952
|
+
* (`personal-server-ts` before the status route).
|
|
33953
|
+
*/
|
|
33954
|
+
errorCode: DerivativeErrorCodeSchema.nullish().transform(
|
|
33955
|
+
(value) => value ?? null
|
|
33956
|
+
),
|
|
33801
33957
|
createdAt: z5.string(),
|
|
33802
33958
|
updatedAt: nullableString,
|
|
33803
33959
|
/** When the last compute finished, or `null` while `pending`. */
|
|
@@ -33930,6 +34086,7 @@ async function questionErrorFromResponse(response, body) {
|
|
|
33930
34086
|
);
|
|
33931
34087
|
}
|
|
33932
34088
|
}
|
|
34089
|
+
var personalServerErrorFromQuestionResponse = questionErrorFromResponse;
|
|
33933
34090
|
async function sendOnce(params, resolved, session, spec, bodyBytes) {
|
|
33934
34091
|
return sendWithFreshProof(
|
|
33935
34092
|
spec.label,
|
|
@@ -34209,6 +34366,166 @@ async function askPersonalServer(params) {
|
|
|
34209
34366
|
return { registration, record };
|
|
34210
34367
|
}
|
|
34211
34368
|
|
|
34369
|
+
// src/protocol/derivative-status.ts
|
|
34370
|
+
import { z as z6 } from "zod";
|
|
34371
|
+
var DERIVATIVE_STATUS_PATH = "/v1/derivatives/status";
|
|
34372
|
+
var DEFAULT_DERIVATIVE_STATUS_TIMEOUT_MS = 12e4;
|
|
34373
|
+
var DEFAULT_DERIVATIVE_STATUS_POLL_INTERVAL_MS = 2e3;
|
|
34374
|
+
var nullable = (schema) => schema.nullish().transform((value) => value ?? null);
|
|
34375
|
+
var DerivativeStatusSchema = z6.object({
|
|
34376
|
+
derivedScope: z6.string().min(1),
|
|
34377
|
+
status: QuestionStatusSchema,
|
|
34378
|
+
/** When the last compute finished, or `null` if none ever has. */
|
|
34379
|
+
lastComputedAt: nullable(z6.string()),
|
|
34380
|
+
/** Local version of the derived record the last compute wrote. */
|
|
34381
|
+
derivedVersion: nullable(z6.number()),
|
|
34382
|
+
derivedCollectedAt: nullable(z6.string()),
|
|
34383
|
+
/** The failure class; `null` unless `status` is `failed`. */
|
|
34384
|
+
errorCode: nullable(DerivativeErrorCodeSchema),
|
|
34385
|
+
/**
|
|
34386
|
+
* Seconds until the Personal Server's next automatic retry, or `null` when
|
|
34387
|
+
* none is pending or running — the terminal signature. Poll on this cadence
|
|
34388
|
+
* rather than guessing one.
|
|
34389
|
+
*/
|
|
34390
|
+
retryAfterSeconds: nullable(z6.number())
|
|
34391
|
+
});
|
|
34392
|
+
function derivativeStatusTarget(derivedScope) {
|
|
34393
|
+
return `${DERIVATIVE_STATUS_PATH}?derivedScope=${encodeURIComponent(derivedScope)}`;
|
|
34394
|
+
}
|
|
34395
|
+
function normalizeBaseUrl3(url) {
|
|
34396
|
+
return url.replace(/\/+$/, "");
|
|
34397
|
+
}
|
|
34398
|
+
function resolveFetch3(fetchFn) {
|
|
34399
|
+
const resolved = fetchFn ?? globalThis.fetch;
|
|
34400
|
+
if (resolved === void 0) {
|
|
34401
|
+
throw new WriteRequestError("No fetch implementation available");
|
|
34402
|
+
}
|
|
34403
|
+
return resolved;
|
|
34404
|
+
}
|
|
34405
|
+
function requireDerivedScope(derivedScope) {
|
|
34406
|
+
if (typeof derivedScope !== "string" || derivedScope.length === 0) {
|
|
34407
|
+
throw new WriteRequestError("derivedScope is required");
|
|
34408
|
+
}
|
|
34409
|
+
return derivedScope;
|
|
34410
|
+
}
|
|
34411
|
+
function sleep3(ms, signal) {
|
|
34412
|
+
if (ms <= 0) return Promise.resolve();
|
|
34413
|
+
return new Promise((resolve, reject) => {
|
|
34414
|
+
const timer = setTimeout(() => {
|
|
34415
|
+
signal?.removeEventListener("abort", onAbort);
|
|
34416
|
+
resolve();
|
|
34417
|
+
}, ms);
|
|
34418
|
+
const onAbort = () => {
|
|
34419
|
+
clearTimeout(timer);
|
|
34420
|
+
reject(abortError2(signal));
|
|
34421
|
+
};
|
|
34422
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
34423
|
+
});
|
|
34424
|
+
}
|
|
34425
|
+
function timeoutError(latest, timeoutMs) {
|
|
34426
|
+
return new DerivativeQuestionTimeoutError(
|
|
34427
|
+
`Derived scope ${latest.derivedScope} was still ${latest.status} after ${timeoutMs}ms`,
|
|
34428
|
+
{
|
|
34429
|
+
derivedScope: latest.derivedScope,
|
|
34430
|
+
status: latest.status,
|
|
34431
|
+
errorCode: latest.errorCode,
|
|
34432
|
+
retryAfterSeconds: latest.retryAfterSeconds,
|
|
34433
|
+
timeoutMs
|
|
34434
|
+
}
|
|
34435
|
+
);
|
|
34436
|
+
}
|
|
34437
|
+
function abortError2(signal) {
|
|
34438
|
+
const reason = signal?.reason;
|
|
34439
|
+
return reason instanceof Error ? reason : new WriteRequestError("Derivative status wait was aborted");
|
|
34440
|
+
}
|
|
34441
|
+
function isDerivativeStatusSettled(status) {
|
|
34442
|
+
if (status.status === "ready") return true;
|
|
34443
|
+
return status.status === "failed" && status.retryAfterSeconds === null;
|
|
34444
|
+
}
|
|
34445
|
+
async function getDerivativeStatus(params) {
|
|
34446
|
+
const derivedScope = requireDerivedScope(params.derivedScope);
|
|
34447
|
+
const fetchFn = resolveFetch3(params.fetch);
|
|
34448
|
+
const baseUrl = normalizeBaseUrl3(params.personalServerUrl);
|
|
34449
|
+
const signer = resolveWriteSigner(params.signer, { account: params.account });
|
|
34450
|
+
const headers = new Headers(params.headers);
|
|
34451
|
+
headers.set(
|
|
34452
|
+
"Authorization",
|
|
34453
|
+
await buildWeb3SignedHeader({
|
|
34454
|
+
signMessage: signer.signMessage,
|
|
34455
|
+
aud: params.audience ?? baseUrl,
|
|
34456
|
+
method: "GET",
|
|
34457
|
+
uri: DERIVATIVE_STATUS_PATH,
|
|
34458
|
+
grantId: params.grantId
|
|
34459
|
+
})
|
|
34460
|
+
);
|
|
34461
|
+
let response;
|
|
34462
|
+
try {
|
|
34463
|
+
response = await fetchFn(
|
|
34464
|
+
`${baseUrl}${derivativeStatusTarget(derivedScope)}`,
|
|
34465
|
+
{
|
|
34466
|
+
method: "GET",
|
|
34467
|
+
headers,
|
|
34468
|
+
...params.signal ? { signal: params.signal } : {}
|
|
34469
|
+
}
|
|
34470
|
+
);
|
|
34471
|
+
} catch (err) {
|
|
34472
|
+
throw new WriteTransportError(
|
|
34473
|
+
`Derivative status read failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
34474
|
+
1,
|
|
34475
|
+
err
|
|
34476
|
+
);
|
|
34477
|
+
}
|
|
34478
|
+
if (!response.ok) {
|
|
34479
|
+
throw await personalServerErrorFromQuestionResponse(
|
|
34480
|
+
response
|
|
34481
|
+
);
|
|
34482
|
+
}
|
|
34483
|
+
let body;
|
|
34484
|
+
try {
|
|
34485
|
+
body = await response.json();
|
|
34486
|
+
} catch (err) {
|
|
34487
|
+
throw new DerivativeQuestionRejectedError(
|
|
34488
|
+
"Derivative status response is not JSON",
|
|
34489
|
+
response.status,
|
|
34490
|
+
null,
|
|
34491
|
+
{ cause: err instanceof Error ? err.message : String(err) }
|
|
34492
|
+
);
|
|
34493
|
+
}
|
|
34494
|
+
const parsed = DerivativeStatusSchema.safeParse(body);
|
|
34495
|
+
if (!parsed.success) {
|
|
34496
|
+
throw new DerivativeQuestionRejectedError(
|
|
34497
|
+
"Derivative status response is not a status view",
|
|
34498
|
+
response.status,
|
|
34499
|
+
null,
|
|
34500
|
+
{ issues: parsed.error.issues }
|
|
34501
|
+
);
|
|
34502
|
+
}
|
|
34503
|
+
return parsed.data;
|
|
34504
|
+
}
|
|
34505
|
+
async function waitForDerivativeStatus(params) {
|
|
34506
|
+
const timeoutMs = Math.max(
|
|
34507
|
+
0,
|
|
34508
|
+
params.timeoutMs ?? DEFAULT_DERIVATIVE_STATUS_TIMEOUT_MS
|
|
34509
|
+
);
|
|
34510
|
+
const pollIntervalMs = Math.max(
|
|
34511
|
+
0,
|
|
34512
|
+
params.pollIntervalMs ?? DEFAULT_DERIVATIVE_STATUS_POLL_INTERVAL_MS
|
|
34513
|
+
);
|
|
34514
|
+
const deadline = Date.now() + timeoutMs;
|
|
34515
|
+
for (; ; ) {
|
|
34516
|
+
if (params.signal?.aborted) throw abortError2(params.signal);
|
|
34517
|
+
const latest = await getDerivativeStatus(params);
|
|
34518
|
+
if (isDerivativeStatusSettled(latest)) return latest;
|
|
34519
|
+
const remaining = deadline - Date.now();
|
|
34520
|
+
if (remaining <= 0) throw timeoutError(latest, timeoutMs);
|
|
34521
|
+
const waitMs = latest.retryAfterSeconds === null ? pollIntervalMs : latest.retryAfterSeconds * 1e3;
|
|
34522
|
+
if (waitMs > remaining) {
|
|
34523
|
+
throw timeoutError(latest, timeoutMs);
|
|
34524
|
+
}
|
|
34525
|
+
await sleep3(waitMs, params.signal);
|
|
34526
|
+
}
|
|
34527
|
+
}
|
|
34528
|
+
|
|
34212
34529
|
// src/protocol/gateway.ts
|
|
34213
34530
|
function withGrantPermissions(grant) {
|
|
34214
34531
|
const stripped = { ...grant };
|
|
@@ -34821,9 +35138,13 @@ export {
|
|
|
34821
35138
|
ContractFactory,
|
|
34822
35139
|
ContractNotFoundError,
|
|
34823
35140
|
DATA_REGISTRY_STATUS_ABI,
|
|
35141
|
+
DEFAULT_DERIVATIVE_STATUS_POLL_INTERVAL_MS,
|
|
35142
|
+
DEFAULT_DERIVATIVE_STATUS_TIMEOUT_MS,
|
|
34824
35143
|
DEFAULT_QUESTION_POLL_INTERVAL_MS,
|
|
34825
35144
|
DEFAULT_QUESTION_TIMEOUT_MS,
|
|
35145
|
+
DERIVATIVE_ERROR_CODES,
|
|
34826
35146
|
DERIVATIVE_QUESTIONS_PATH,
|
|
35147
|
+
DERIVATIVE_STATUS_PATH,
|
|
34827
35148
|
DataFileEnvelopeSchema,
|
|
34828
35149
|
DataPointDeletedError,
|
|
34829
35150
|
DataPointNotFoundError,
|
|
@@ -34832,6 +35153,7 @@ export {
|
|
|
34832
35153
|
DerivativeComputeUnavailableError,
|
|
34833
35154
|
DerivativeCycleError,
|
|
34834
35155
|
DerivativeDerivedScopeRequiredError,
|
|
35156
|
+
DerivativeErrorCodeSchema,
|
|
34835
35157
|
DerivativeQuestionFailedError,
|
|
34836
35158
|
DerivativeQuestionInvalidError,
|
|
34837
35159
|
DerivativeQuestionNotFoundError,
|
|
@@ -34839,8 +35161,12 @@ export {
|
|
|
34839
35161
|
DerivativeQuestionSchema,
|
|
34840
35162
|
DerivativeQuestionTimeoutError,
|
|
34841
35163
|
DerivativeSourceNotGrantedError,
|
|
35164
|
+
DerivativeStatusSchema,
|
|
34842
35165
|
DropboxStorage,
|
|
34843
35166
|
ECIESError,
|
|
35167
|
+
ENCLAVE_IDENTITY_EVIDENCE_VERSION,
|
|
35168
|
+
ENCLAVE_TRUST_ANCHORS,
|
|
35169
|
+
ENCLAVE_WALLET_PURPOSE,
|
|
34844
35170
|
ESCROW_DEPOSIT_ABI2 as ESCROW_DEPOSIT_ABI,
|
|
34845
35171
|
ExpiredTokenError,
|
|
34846
35172
|
FEE_REGISTRY_ABI,
|
|
@@ -34861,6 +35187,7 @@ export {
|
|
|
34861
35187
|
LineageNodeSchema,
|
|
34862
35188
|
LineageReadError,
|
|
34863
35189
|
MASTER_KEY_MESSAGE,
|
|
35190
|
+
MASTER_SIGNATURE_DELIVERY_VERSION,
|
|
34864
35191
|
MAX_LINEAGE_SOURCES,
|
|
34865
35192
|
MAX_QUESTION_CHARS,
|
|
34866
35193
|
MAX_QUESTION_MODEL_CHARS,
|
|
@@ -34896,6 +35223,7 @@ export {
|
|
|
34896
35223
|
RedactedLineageNodeSchema,
|
|
34897
35224
|
RelayerError,
|
|
34898
35225
|
SCOPE_ACTIONS,
|
|
35226
|
+
SEALED_ENVELOPE_VERSION,
|
|
34899
35227
|
SERVER_REGISTRATION_TYPES,
|
|
34900
35228
|
ScopeSchema,
|
|
34901
35229
|
SerializationError,
|
|
@@ -34908,6 +35236,7 @@ export {
|
|
|
34908
35236
|
TOMBSTONE_METADATA_HASH,
|
|
34909
35237
|
TOMBSTONE_METADATA_HASH_PREIMAGE,
|
|
34910
35238
|
TransactionPendingError,
|
|
35239
|
+
USER_PS_ID_DOMAIN,
|
|
34911
35240
|
UserRejectedRequestError,
|
|
34912
35241
|
VanaError,
|
|
34913
35242
|
VanaStorage,
|
|
@@ -34926,6 +35255,7 @@ export {
|
|
|
34926
35255
|
WriteSessionExpiredError,
|
|
34927
35256
|
WriteTransportError,
|
|
34928
35257
|
WriteUnauthorizedError,
|
|
35258
|
+
appRootPreimage,
|
|
34929
35259
|
askPersonalServer,
|
|
34930
35260
|
assertDerivedScopeNaming,
|
|
34931
35261
|
assertValidPkceVerifier,
|
|
@@ -34935,6 +35265,7 @@ export {
|
|
|
34935
35265
|
buildDepositNativeRequest,
|
|
34936
35266
|
buildDepositTokenRequest,
|
|
34937
35267
|
buildMarkDataPointUnavailableRequest,
|
|
35268
|
+
buildMasterSignatureDelivery,
|
|
34938
35269
|
buildPersonalServerDataReadRequest,
|
|
34939
35270
|
buildPersonalServerLiteOwnerBindingMessage,
|
|
34940
35271
|
buildPersonalServerLiteOwnerBindingSignature,
|
|
@@ -34963,6 +35294,7 @@ export {
|
|
|
34963
35294
|
decryptWithPassword,
|
|
34964
35295
|
deleteDataPoint,
|
|
34965
35296
|
deleteQuestion,
|
|
35297
|
+
derivativeStatusTarget,
|
|
34966
35298
|
deriveDataPointId,
|
|
34967
35299
|
deriveMasterKey,
|
|
34968
35300
|
deriveScopeKey,
|
|
@@ -34973,6 +35305,7 @@ export {
|
|
|
34973
35305
|
encodeDepositTokenData,
|
|
34974
35306
|
encodeSetDataPointStatusData,
|
|
34975
35307
|
encodeWriteMetadataHeader,
|
|
35308
|
+
encryptMasterSignatureDelivery,
|
|
34976
35309
|
encryptWithPassword,
|
|
34977
35310
|
escrowContractAddress,
|
|
34978
35311
|
escrowPaymentDomain,
|
|
@@ -34986,6 +35319,7 @@ export {
|
|
|
34986
35319
|
getContractAddress,
|
|
34987
35320
|
getContractController,
|
|
34988
35321
|
getContractInfo,
|
|
35322
|
+
getDerivativeStatus,
|
|
34989
35323
|
getFee,
|
|
34990
35324
|
getGatewayLineage,
|
|
34991
35325
|
getLineage,
|
|
@@ -35001,10 +35335,12 @@ export {
|
|
|
35001
35335
|
isDataPointId,
|
|
35002
35336
|
isDataPointTombstone,
|
|
35003
35337
|
isDataPortabilityGatewayConfig,
|
|
35338
|
+
isDerivativeStatusSettled,
|
|
35004
35339
|
isECIESEncrypted,
|
|
35005
35340
|
isPlatformSupported,
|
|
35006
35341
|
isRedactedLineageNode,
|
|
35007
35342
|
isTombstoneHashes,
|
|
35343
|
+
kmsIssuedPreimage,
|
|
35008
35344
|
listQuestions,
|
|
35009
35345
|
mainnetServices,
|
|
35010
35346
|
moksha,
|
|
@@ -35039,10 +35375,13 @@ export {
|
|
|
35039
35375
|
signPersonalServerRegistrationWithAccount,
|
|
35040
35376
|
tombstoneDeletedAt,
|
|
35041
35377
|
tryGrantPermissions,
|
|
35378
|
+
userPsId,
|
|
35042
35379
|
vanaMainnet2 as vanaMainnet,
|
|
35380
|
+
verifyEnclaveIdentityEvidence,
|
|
35043
35381
|
verifyGrantRegistration,
|
|
35044
35382
|
verifyPkceChallenge,
|
|
35045
35383
|
verifyWeb3Signed,
|
|
35384
|
+
waitForDerivativeStatus,
|
|
35046
35385
|
waitForQuestion,
|
|
35047
35386
|
writeData,
|
|
35048
35387
|
writePersonalServerData
|