passkey-kit 0.10.5 → 0.10.6
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/package.json +6 -6
- package/src/kit.ts +2 -2
- package/src/sac.ts +1 -1
- package/src/server.ts +4 -3
- package/types/kit.d.ts +2 -2
- package/types/sac.d.ts +1 -1
- package/types/server.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "passkey-kit",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.6",
|
|
4
4
|
"description": "A helper library for creating and using smart wallet accounts on the Stellar blockchain.",
|
|
5
5
|
"author": "Tyler van der Hoeven",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"main": "src/index.ts",
|
|
9
9
|
"types": "types/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@simplewebauthn/browser": "^
|
|
11
|
+
"@simplewebauthn/browser": "^13.0.0",
|
|
12
12
|
"@stellar/stellar-sdk": "^13.0.0",
|
|
13
13
|
"base64url": "^3.0.1",
|
|
14
14
|
"buffer": "^6.0.3",
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"passkey-kit-sdk": "0.6.2",
|
|
16
|
+
"sac-sdk": "0.3.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@simplewebauthn/types": "^
|
|
20
|
-
"@types/node": "^22.10.
|
|
19
|
+
"@simplewebauthn/types": "^12.0.0",
|
|
20
|
+
"@types/node": "^22.10.2",
|
|
21
21
|
"typescript": "^5.7.2"
|
|
22
22
|
},
|
|
23
23
|
"workspaces": [
|
package/src/kit.ts
CHANGED
|
@@ -13,8 +13,6 @@ export class PasskeyKit extends PasskeyBase {
|
|
|
13
13
|
declare rpc: Server
|
|
14
14
|
declare rpcUrl: string
|
|
15
15
|
|
|
16
|
-
private keyId: string | undefined
|
|
17
|
-
private networkPassphrase: string
|
|
18
16
|
private walletKeypair = Keypair.fromRawEd25519Seed(Buffer.alloc(32))
|
|
19
17
|
private walletPublicKey = this.walletKeypair.publicKey()
|
|
20
18
|
private walletWasmHash: string
|
|
@@ -23,6 +21,8 @@ export class PasskeyKit extends PasskeyBase {
|
|
|
23
21
|
startAuthentication: typeof startAuthentication
|
|
24
22
|
}
|
|
25
23
|
|
|
24
|
+
public keyId: string | undefined
|
|
25
|
+
public networkPassphrase: string
|
|
26
26
|
public wallet: PasskeyClient | undefined
|
|
27
27
|
|
|
28
28
|
constructor(options: {
|
package/src/sac.ts
CHANGED
package/src/server.ts
CHANGED
|
@@ -7,13 +7,14 @@ import { AssembledTransaction } from "@stellar/stellar-sdk/minimal/contract"
|
|
|
7
7
|
import { Durability } from "@stellar/stellar-sdk/minimal/rpc"
|
|
8
8
|
|
|
9
9
|
export class PasskeyServer extends PasskeyBase {
|
|
10
|
-
private launchtubeUrl: string | undefined
|
|
11
10
|
private launchtubeJwt: string | undefined
|
|
12
|
-
private mercuryProjectName: string | undefined
|
|
13
|
-
private mercuryUrl: string | undefined
|
|
14
11
|
private mercuryJwt: string | undefined
|
|
15
12
|
private mercuryKey: string | undefined
|
|
16
13
|
|
|
14
|
+
public launchtubeUrl: string | undefined
|
|
15
|
+
public mercuryProjectName: string | undefined
|
|
16
|
+
public mercuryUrl: string | undefined
|
|
17
|
+
|
|
17
18
|
constructor(options: {
|
|
18
19
|
rpcUrl?: string,
|
|
19
20
|
launchtubeUrl?: string,
|
package/types/kit.d.ts
CHANGED
|
@@ -10,12 +10,12 @@ import type { Server } from '@stellar/stellar-sdk/minimal/rpc';
|
|
|
10
10
|
export declare class PasskeyKit extends PasskeyBase {
|
|
11
11
|
rpc: Server;
|
|
12
12
|
rpcUrl: string;
|
|
13
|
-
private keyId;
|
|
14
|
-
private networkPassphrase;
|
|
15
13
|
private walletKeypair;
|
|
16
14
|
private walletPublicKey;
|
|
17
15
|
private walletWasmHash;
|
|
18
16
|
private WebAuthn;
|
|
17
|
+
keyId: string | undefined;
|
|
18
|
+
networkPassphrase: string;
|
|
19
19
|
wallet: PasskeyClient | undefined;
|
|
20
20
|
constructor(options: {
|
|
21
21
|
rpcUrl: string;
|
package/types/sac.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type { Server } from '@stellar/stellar-sdk/minimal/rpc';
|
|
|
4
4
|
export declare class SACClient extends PasskeyBase {
|
|
5
5
|
rpc: Server;
|
|
6
6
|
rpcUrl: string;
|
|
7
|
-
|
|
7
|
+
networkPassphrase: string;
|
|
8
8
|
constructor(options: {
|
|
9
9
|
networkPassphrase: string;
|
|
10
10
|
rpcUrl: string;
|
package/types/server.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ import type { Tx } from "@stellar/stellar-sdk/minimal/contract";
|
|
|
3
3
|
import type { Signer } from "./types";
|
|
4
4
|
import { AssembledTransaction } from "@stellar/stellar-sdk/minimal/contract";
|
|
5
5
|
export declare class PasskeyServer extends PasskeyBase {
|
|
6
|
-
private launchtubeUrl;
|
|
7
6
|
private launchtubeJwt;
|
|
8
|
-
private mercuryProjectName;
|
|
9
|
-
private mercuryUrl;
|
|
10
7
|
private mercuryJwt;
|
|
11
8
|
private mercuryKey;
|
|
9
|
+
launchtubeUrl: string | undefined;
|
|
10
|
+
mercuryProjectName: string | undefined;
|
|
11
|
+
mercuryUrl: string | undefined;
|
|
12
12
|
constructor(options: {
|
|
13
13
|
rpcUrl?: string;
|
|
14
14
|
launchtubeUrl?: string;
|