passkey-kit 0.10.13 → 0.10.14
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 +4 -4
- package/src/kit.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "passkey-kit",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.14",
|
|
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,7 +8,7 @@
|
|
|
8
8
|
"main": "src/index.ts",
|
|
9
9
|
"types": "types/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@simplewebauthn/browser": "^13.
|
|
11
|
+
"@simplewebauthn/browser": "^13.1.0",
|
|
12
12
|
"@stellar/stellar-sdk": "^13.1.0",
|
|
13
13
|
"base64url": "^3.0.1",
|
|
14
14
|
"buffer": "^6.0.3",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@simplewebauthn/types": "^12.0.0",
|
|
20
|
-
"@types/node": "^22.
|
|
21
|
-
"typescript": "^5.
|
|
20
|
+
"@types/node": "^22.13.6",
|
|
21
|
+
"typescript": "^5.8.2"
|
|
22
22
|
},
|
|
23
23
|
"workspaces": [
|
|
24
24
|
"packages/*"
|
package/src/kit.ts
CHANGED
|
@@ -39,7 +39,12 @@ export class PasskeyKit extends PasskeyBase {
|
|
|
39
39
|
super(rpcUrl)
|
|
40
40
|
|
|
41
41
|
this.networkPassphrase = networkPassphrase
|
|
42
|
-
this
|
|
42
|
+
// this account exists as the seed source for deploying new wallets
|
|
43
|
+
// not using the genesis wallet as on mainnet the account has no usable signers
|
|
44
|
+
// there's a chance this isn't the best move and should instead be a constructor variable
|
|
45
|
+
// alternatively when we create a new wallet we shouldn't inherit the source as the auth entry signer
|
|
46
|
+
// Keypair.fromRawEd25519Seed(hash(Buffer.from(this.networkPassphrase)))
|
|
47
|
+
this.walletKeypair = Keypair.fromRawEd25519Seed(hash(Buffer.from('kalepail')));
|
|
43
48
|
this.walletPublicKey = this.walletKeypair.publicKey()
|
|
44
49
|
this.walletWasmHash = walletWasmHash
|
|
45
50
|
this.WebAuthn = WebAuthn || { startRegistration, startAuthentication }
|