@kynesyslabs/demosdk 2.7.0 → 2.7.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/build/keyserver/KeyServerClient.d.ts +7 -4
- package/build/keyserver/KeyServerClient.js +20 -5
- package/build/keyserver/KeyServerClient.js.map +1 -1
- package/build/keyserver/index.d.ts +1 -1
- package/build/keyserver/types.d.ts +55 -1
- package/build/keyserver/verification.d.ts +3 -1
- package/build/keyserver/verification.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
* Enables dApps to verify user ownership of GitHub/Discord accounts
|
|
6
6
|
* with DAHR attestation.
|
|
7
7
|
*/
|
|
8
|
-
import type { KeyServerClientConfig, OAuthService, OAuthInitOptions, OAuthInitResult, OAuthPollResult, OAuthVerifyOptions, OAuthVerificationResult } from "./types";
|
|
8
|
+
import type { KeyServerClientConfig, OAuthService, OAuthInitOptions, OAuthInitResult, OAuthPollResult, OAuthVerifyOptions, OAuthVerificationResult, WalletBinding } from "./types";
|
|
9
9
|
export declare class KeyServerClient {
|
|
10
10
|
private readonly endpoint;
|
|
11
11
|
private readonly nodePubKey;
|
|
12
|
+
private readonly defaultWalletAddress?;
|
|
12
13
|
constructor(config: KeyServerClientConfig);
|
|
13
14
|
/**
|
|
14
15
|
* Get list of available OAuth providers
|
|
@@ -30,18 +31,20 @@ export declare class KeyServerClient {
|
|
|
30
31
|
* Poll for OAuth verification result
|
|
31
32
|
*
|
|
32
33
|
* @param state - State identifier from initiateOAuth
|
|
34
|
+
* @param walletBinding - Optional wallet binding with signature proving ownership
|
|
33
35
|
* @returns Current status of the OAuth flow
|
|
34
36
|
* @throws OAuthError if polling fails
|
|
35
37
|
*/
|
|
36
|
-
pollOAuth(state: string): Promise<OAuthPollResult>;
|
|
38
|
+
pollOAuth(state: string, walletBinding?: WalletBinding): Promise<OAuthPollResult>;
|
|
37
39
|
/**
|
|
38
40
|
* Convenience method: initiate OAuth and wait for completion
|
|
39
41
|
*
|
|
40
42
|
* This method handles the full OAuth flow:
|
|
41
43
|
* 1. Initiates the OAuth flow
|
|
42
44
|
* 2. Calls onAuthUrl callback for dApp to display the URL
|
|
43
|
-
* 3.
|
|
44
|
-
* 4.
|
|
45
|
+
* 3. Resolves wallet binding (if provided as function, calls with state)
|
|
46
|
+
* 4. Polls until completion, timeout, or failure
|
|
47
|
+
* 5. Returns the verified user info and attestation
|
|
45
48
|
*
|
|
46
49
|
* @param service - OAuth provider ("github" or "discord")
|
|
47
50
|
* @param options - Configuration including callbacks
|
|
@@ -16,6 +16,7 @@ class KeyServerClient {
|
|
|
16
16
|
// Normalize endpoint (remove trailing slash)
|
|
17
17
|
this.endpoint = config.endpoint.replace(/\/$/, "");
|
|
18
18
|
this.nodePubKey = config.nodePubKey;
|
|
19
|
+
this.defaultWalletAddress = config.defaultWalletAddress;
|
|
19
20
|
}
|
|
20
21
|
/**
|
|
21
22
|
* Get list of available OAuth providers
|
|
@@ -61,15 +62,17 @@ class KeyServerClient {
|
|
|
61
62
|
* Poll for OAuth verification result
|
|
62
63
|
*
|
|
63
64
|
* @param state - State identifier from initiateOAuth
|
|
65
|
+
* @param walletBinding - Optional wallet binding with signature proving ownership
|
|
64
66
|
* @returns Current status of the OAuth flow
|
|
65
67
|
* @throws OAuthError if polling fails
|
|
66
68
|
*/
|
|
67
|
-
async pollOAuth(state) {
|
|
69
|
+
async pollOAuth(state, walletBinding) {
|
|
68
70
|
const response = await this.fetch("/oauth/poll", {
|
|
69
71
|
method: "POST",
|
|
70
72
|
body: JSON.stringify({
|
|
71
73
|
state,
|
|
72
74
|
nodePubKey: this.nodePubKey,
|
|
75
|
+
walletBinding,
|
|
73
76
|
}),
|
|
74
77
|
});
|
|
75
78
|
return response;
|
|
@@ -80,8 +83,9 @@ class KeyServerClient {
|
|
|
80
83
|
* This method handles the full OAuth flow:
|
|
81
84
|
* 1. Initiates the OAuth flow
|
|
82
85
|
* 2. Calls onAuthUrl callback for dApp to display the URL
|
|
83
|
-
* 3.
|
|
84
|
-
* 4.
|
|
86
|
+
* 3. Resolves wallet binding (if provided as function, calls with state)
|
|
87
|
+
* 4. Polls until completion, timeout, or failure
|
|
88
|
+
* 5. Returns the verified user info and attestation
|
|
85
89
|
*
|
|
86
90
|
* @param service - OAuth provider ("github" or "discord")
|
|
87
91
|
* @param options - Configuration including callbacks
|
|
@@ -100,7 +104,18 @@ class KeyServerClient {
|
|
|
100
104
|
if (options?.onAuthUrl) {
|
|
101
105
|
options.onAuthUrl(initResult.authUrl, initResult.state);
|
|
102
106
|
}
|
|
103
|
-
// Step 3:
|
|
107
|
+
// Step 3: Resolve wallet binding
|
|
108
|
+
let walletBinding;
|
|
109
|
+
if (options?.walletBinding) {
|
|
110
|
+
if (typeof options.walletBinding === "function") {
|
|
111
|
+
// Call the async function with state to get wallet binding
|
|
112
|
+
walletBinding = await options.walletBinding(initResult.state);
|
|
113
|
+
}
|
|
114
|
+
else {
|
|
115
|
+
walletBinding = options.walletBinding;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
// Step 4: Poll for result
|
|
104
119
|
const startTime = Date.now();
|
|
105
120
|
let attempt = 0;
|
|
106
121
|
while (Date.now() - startTime < timeout) {
|
|
@@ -109,7 +124,7 @@ class KeyServerClient {
|
|
|
109
124
|
if (attempt > 1) {
|
|
110
125
|
await this.sleep(pollInterval);
|
|
111
126
|
}
|
|
112
|
-
const pollResult = await this.pollOAuth(initResult.state);
|
|
127
|
+
const pollResult = await this.pollOAuth(initResult.state, walletBinding);
|
|
113
128
|
// Notify dApp of poll status
|
|
114
129
|
if (options?.onPoll) {
|
|
115
130
|
options.onPoll(attempt, pollResult.status);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyServerClient.js","sourceRoot":"","sources":["../../../src/keyserver/KeyServerClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;
|
|
1
|
+
{"version":3,"file":"KeyServerClient.js","sourceRoot":"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28,4 @@ export { OAuthError } from "./errors";
|
|
|
28
28
|
export { verifyAttestation, verifyOAuthAttestation } from "./verification";
|
|
29
29
|
export type { OAuthErrorCode } from "./errors";
|
|
30
30
|
export type { VerifyAttestationOptions, AttestationVerificationResult, } from "./verification";
|
|
31
|
-
export type { KeyServerClientConfig, OAuthService, OAuthInitOptions, OAuthInitResult, OAuthPollResult, OAuthVerifyOptions, OAuthVerificationResult, OAuthStatus, OAuthUserInfo, DAHRAttestation, OAuthProvidersResponse, } from "./types";
|
|
31
|
+
export type { KeyServerClientConfig, OAuthService, OAuthInitOptions, OAuthInitResult, OAuthPollResult, OAuthVerifyOptions, OAuthVerificationResult, OAuthStatus, OAuthUserInfo, DAHRAttestation, OAuthProvidersResponse, WalletBinding, } from "./types";
|
|
@@ -8,6 +8,23 @@
|
|
|
8
8
|
* Supported OAuth providers
|
|
9
9
|
*/
|
|
10
10
|
export type OAuthService = "github" | "discord";
|
|
11
|
+
/**
|
|
12
|
+
* Wallet binding for OAuth verification.
|
|
13
|
+
* Proves ownership of a wallet address during OAuth flow.
|
|
14
|
+
*/
|
|
15
|
+
export interface WalletBinding {
|
|
16
|
+
/** The wallet address to bind to this OAuth verification */
|
|
17
|
+
address: string;
|
|
18
|
+
/**
|
|
19
|
+
* Signature proving ownership of the wallet address.
|
|
20
|
+
* The message signed should be: "demos-oauth-bind:{state}" where state is from initiateOAuth.
|
|
21
|
+
* For EVM: personal_sign or eth_sign
|
|
22
|
+
* For Solana: signMessage
|
|
23
|
+
*/
|
|
24
|
+
signature: string;
|
|
25
|
+
/** Signature scheme used (for verification on receiving end) */
|
|
26
|
+
signatureType: "evm" | "solana" | "ed25519";
|
|
27
|
+
}
|
|
11
28
|
/**
|
|
12
29
|
* Options for initiating an OAuth flow
|
|
13
30
|
*/
|
|
@@ -16,6 +33,13 @@ export interface OAuthInitOptions {
|
|
|
16
33
|
scopes?: string[];
|
|
17
34
|
/** Flow timeout in milliseconds (default: 600000 = 10min) */
|
|
18
35
|
timeout?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Wallet address to associate with this OAuth verification.
|
|
38
|
+
* This address will be included in the DAHR attestation metadata.
|
|
39
|
+
* Overrides defaultWalletAddress from KeyServerClientConfig if both are set.
|
|
40
|
+
* @deprecated Use walletBinding for signed wallet proof instead
|
|
41
|
+
*/
|
|
42
|
+
walletAddress?: string;
|
|
19
43
|
}
|
|
20
44
|
/**
|
|
21
45
|
* Result from initiating an OAuth flow
|
|
@@ -77,6 +101,12 @@ export interface DAHRAttestation {
|
|
|
77
101
|
nodePubKey: string;
|
|
78
102
|
/** Key Server version */
|
|
79
103
|
version: string;
|
|
104
|
+
/**
|
|
105
|
+
* Wallet binding included in the attestation.
|
|
106
|
+
* Contains the wallet address and signature proving ownership.
|
|
107
|
+
* The Key Server verifies this signature before including it.
|
|
108
|
+
*/
|
|
109
|
+
walletBinding?: WalletBinding;
|
|
80
110
|
};
|
|
81
111
|
}
|
|
82
112
|
/**
|
|
@@ -102,7 +132,8 @@ export interface OAuthPollResult {
|
|
|
102
132
|
*/
|
|
103
133
|
export interface OAuthVerifyOptions extends OAuthInitOptions {
|
|
104
134
|
/**
|
|
105
|
-
* Called when auth URL is ready - dApp should display this to user
|
|
135
|
+
* Called when auth URL is ready - dApp should display this to user.
|
|
136
|
+
* The state is needed for wallet binding signature.
|
|
106
137
|
*/
|
|
107
138
|
onAuthUrl?: (authUrl: string, state: string) => void;
|
|
108
139
|
/**
|
|
@@ -113,6 +144,24 @@ export interface OAuthVerifyOptions extends OAuthInitOptions {
|
|
|
113
144
|
* Called on each poll attempt (for UI feedback)
|
|
114
145
|
*/
|
|
115
146
|
onPoll?: (attempt: number, status: OAuthStatus) => void;
|
|
147
|
+
/**
|
|
148
|
+
* Wallet binding with signature proving ownership.
|
|
149
|
+
* The signature message format is: "demos-oauth-bind:{state}"
|
|
150
|
+
* This is called after initiateOAuth to get the state for signing.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```typescript
|
|
154
|
+
* const result = await client.verifyOAuth("github", {
|
|
155
|
+
* onAuthUrl: async (authUrl, state) => {
|
|
156
|
+
* // Sign with user's wallet
|
|
157
|
+
* const message = `demos-oauth-bind:${state}`;
|
|
158
|
+
* const signature = await wallet.signMessage(message);
|
|
159
|
+
* return { address: wallet.address, signature, signatureType: "evm" };
|
|
160
|
+
* },
|
|
161
|
+
* });
|
|
162
|
+
* ```
|
|
163
|
+
*/
|
|
164
|
+
walletBinding?: WalletBinding | ((state: string) => Promise<WalletBinding>);
|
|
116
165
|
}
|
|
117
166
|
/**
|
|
118
167
|
* Result from the convenience verifyOAuth method
|
|
@@ -133,6 +182,11 @@ export interface KeyServerClientConfig {
|
|
|
133
182
|
endpoint: string;
|
|
134
183
|
/** Node's public key (hex-encoded Ed25519) */
|
|
135
184
|
nodePubKey: string;
|
|
185
|
+
/**
|
|
186
|
+
* Default wallet address to associate with OAuth verifications.
|
|
187
|
+
* Can be overridden per-request via OAuthInitOptions.walletAddress.
|
|
188
|
+
*/
|
|
189
|
+
defaultWalletAddress?: string;
|
|
136
190
|
}
|
|
137
191
|
/**
|
|
138
192
|
* Response from GET /oauth/providers
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Allows consuming apps to independently verify that the Key Server
|
|
6
6
|
* actually performed the OAuth verification.
|
|
7
7
|
*/
|
|
8
|
-
import type { DAHRAttestation, OAuthVerificationResult } from "./types";
|
|
8
|
+
import type { DAHRAttestation, OAuthVerificationResult, WalletBinding } from "./types";
|
|
9
9
|
/**
|
|
10
10
|
* Options for attestation verification
|
|
11
11
|
*/
|
|
@@ -35,6 +35,8 @@ export interface AttestationVerificationResult {
|
|
|
35
35
|
keyServerPubKey: string;
|
|
36
36
|
nodePubKey: string;
|
|
37
37
|
version: string;
|
|
38
|
+
/** Wallet binding if present in attestation */
|
|
39
|
+
walletBinding?: WalletBinding;
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification.js","sourceRoot":"","sources":["../../../src/keyserver/verification.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"verification.js","sourceRoot":"","sources":["../../../src/keyserver/verification.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAuEH,8CAmFC;AAYD,wDAaC;AAjLD,6CAA4C;AAyC5C;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,iBAAiB,CAC7B,WAA4B,EAC5B,eAAuB,EACvB,OAAkC;IAElC,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,OAAO,CAAC,CAAC,iBAAiB;IAE5D,iCAAiC;IACjC,IAAI,CAAC,WAAW,IAAI,CAAC,WAAW,CAAC,SAAS,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAClE,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,+BAA+B;SAC1C,CAAC;IACN,CAAC;IAED,uBAAuB;IACvB,IAAI,WAAW,CAAC,SAAS,CAAC,IAAI,KAAK,SAAS,EAAE,CAAC;QAC3C,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,+BAA+B,WAAW,CAAC,SAAS,CAAC,IAAI,EAAE;SACtE,CAAC;IACN,CAAC;IAED,sCAAsC;IACtC,IAAI,WAAW,CAAC,QAAQ,CAAC,eAAe,KAAK,eAAe,EAAE,CAAC;QAC3D,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,gCAAgC;YACxC,QAAQ,EAAE,WAAW,CAAC,QAAQ;SACjC,CAAC;IACN,CAAC;IAED,oCAAoC;IACpC,IACI,OAAO,EAAE,kBAAkB;QAC3B,WAAW,CAAC,QAAQ,CAAC,UAAU,KAAK,OAAO,CAAC,kBAAkB,EAChE,CAAC;QACC,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,0BAA0B;YAClC,QAAQ,EAAE,WAAW,CAA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