passkey-kit 0.8.6 → 0.9.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/package.json +4 -4
- package/packages/passkey-factory-sdk/package.json +2 -2
- package/packages/passkey-factory-sdk/src/index.ts +1 -1
- package/packages/passkey-kit-sdk/package.json +2 -2
- package/packages/passkey-kit-sdk/src/index.ts +1 -1
- package/packages/sac-sdk/package.json +2 -2
- package/packages/sac-sdk/src/index.ts +1 -1
- package/src/base.ts +1 -1
- package/src/kit.ts +3 -1
- package/src/sac.ts +1 -1
- package/src/server.ts +1 -1
- package/types/base.d.ts +1 -1
- package/types/kit.d.ts +1 -1
- package/types/sac.d.ts +1 -1
- package/wrangler.toml +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "passkey-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
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",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"@stellar/stellar-sdk": "13.0.0-beta.1",
|
|
13
13
|
"base64url": "^3.0.1",
|
|
14
14
|
"buffer": "^6.0.3",
|
|
15
|
-
"passkey-factory-sdk": "0.
|
|
16
|
-
"sac-sdk": "0.1
|
|
17
|
-
"passkey-kit-sdk": "0.
|
|
15
|
+
"passkey-factory-sdk": "0.4.1",
|
|
16
|
+
"sac-sdk": "0.2.1",
|
|
17
|
+
"passkey-kit-sdk": "0.4.1"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@simplewebauthn/types": "^10.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.4.1",
|
|
3
3
|
"name": "passkey-factory-sdk",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"buffer": "6.0.3",
|
|
13
|
-
"@stellar/stellar-sdk": "
|
|
13
|
+
"@stellar/stellar-sdk": "12.3.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"typescript": "5.6.2"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.4.1",
|
|
3
3
|
"name": "passkey-kit-sdk",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"buffer": "6.0.3",
|
|
13
|
-
"@stellar/stellar-sdk": "
|
|
13
|
+
"@stellar/stellar-sdk": "12.3.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"typescript": "5.6.2"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1
|
|
2
|
+
"version": "0.2.1",
|
|
3
3
|
"name": "sac-sdk",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"buffer": "6.0.3",
|
|
13
|
-
"@stellar/stellar-sdk": "
|
|
13
|
+
"@stellar/stellar-sdk": "12.3.0"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"typescript": "5.6.2"
|
package/src/base.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SorobanRpc } from "@stellar/stellar-sdk"
|
|
1
|
+
import { SorobanRpc } from "@stellar/stellar-sdk/minimal"
|
|
2
2
|
|
|
3
3
|
// TODO consider adding support for a signAuthEntry method that conforms to the ed25519 signature scheme of this passkey interface
|
|
4
4
|
// once we do that we can clean the code a little with the `xdr.HashIdPreimage.envelopeTypeSorobanAuthorization` stuff
|
package/src/kit.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client as FactoryClient } from 'passkey-factory-sdk'
|
|
2
2
|
import { Client as PasskeyClient, type Signature, type SignerKey as SDKSignerKey, type SignerLimits as SDKSignerLimits } from 'passkey-kit-sdk'
|
|
3
|
-
import { StrKey, hash, xdr, SorobanRpc, Keypair, Address } from '@stellar/stellar-sdk'
|
|
3
|
+
import { StrKey, hash, xdr, SorobanRpc, Keypair, Address } from '@stellar/stellar-sdk/minimal'
|
|
4
4
|
import { AssembledTransaction, DEFAULT_TIMEOUT, type Tx } from '@stellar/stellar-sdk/contract'
|
|
5
5
|
import type { AuthenticatorAttestationResponseJSON, AuthenticatorSelectionCriteria } from "@simplewebauthn/types"
|
|
6
6
|
import { startRegistration, startAuthentication } from "@simplewebauthn/browser"
|
|
@@ -9,6 +9,8 @@ import base64url from 'base64url'
|
|
|
9
9
|
import type { SignerKey, SignerLimits, SignerStore } from './types'
|
|
10
10
|
import { PasskeyBase } from './base'
|
|
11
11
|
|
|
12
|
+
// TODO Return base64url encoded strings as well as buffers
|
|
13
|
+
|
|
12
14
|
export class PasskeyKit extends PasskeyBase {
|
|
13
15
|
declare public rpc: SorobanRpc.Server
|
|
14
16
|
declare public rpcUrl: string
|
package/src/sac.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client as SacClient } from 'sac-sdk'
|
|
2
2
|
import { PasskeyBase } from "./base"
|
|
3
|
-
import type { SorobanRpc } from '@stellar/stellar-sdk'
|
|
3
|
+
import type { SorobanRpc } from '@stellar/stellar-sdk/minimal'
|
|
4
4
|
|
|
5
5
|
export class SACClient extends PasskeyBase {
|
|
6
6
|
declare public rpc: SorobanRpc.Server
|
package/src/server.ts
CHANGED
package/types/base.d.ts
CHANGED
package/types/kit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client as FactoryClient } from 'passkey-factory-sdk';
|
|
2
2
|
import { Client as PasskeyClient } from 'passkey-kit-sdk';
|
|
3
|
-
import { xdr, SorobanRpc, Keypair } from '@stellar/stellar-sdk';
|
|
3
|
+
import { xdr, SorobanRpc, Keypair } from '@stellar/stellar-sdk/minimal';
|
|
4
4
|
import { AssembledTransaction, type Tx } from '@stellar/stellar-sdk/contract';
|
|
5
5
|
import type { AuthenticatorSelectionCriteria } from "@simplewebauthn/types";
|
|
6
6
|
import { startRegistration, startAuthentication } from "@simplewebauthn/browser";
|
package/types/sac.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client as SacClient } from 'sac-sdk';
|
|
2
2
|
import { PasskeyBase } from "./base";
|
|
3
|
-
import type { SorobanRpc } from '@stellar/stellar-sdk';
|
|
3
|
+
import type { SorobanRpc } from '@stellar/stellar-sdk/minimal';
|
|
4
4
|
export declare class SACClient extends PasskeyBase {
|
|
5
5
|
rpc: SorobanRpc.Server;
|
|
6
6
|
rpcUrl: string;
|
package/wrangler.toml
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# Generated by Wrangler on Thu Oct 03 2024 15:40:55 GMT-0400 (Eastern Daylight Time)
|
|
2
|
-
name = "passkey-kit-demo"
|
|
3
|
-
pages_build_output_dir = "demo/dist"
|
|
4
|
-
compatibility_date = "2024-10-03"
|
|
5
|
-
|
|
6
|
-
[vars]
|
|
7
|
-
VITE_factoryContractId = "CCD7M4VVKELWL2RO4XJOZOGBDF3ESFIKG2EAU4ETVNAKMRRKE6YIQU5E"
|
|
8
|
-
VITE_launchtubeUrl = "https://launchtube.sdf-ecosystem.workers.dev"
|
|
9
|
-
VITE_mercuryUrl = "https://api.mercurydata.app"
|
|
10
|
-
VITE_nativeContractId = "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
11
|
-
VITE_networkPassphrase = "Test SDF Network ; September 2015"
|
|
12
|
-
VITE_rpcUrl = "https://soroban-testnet.stellar.org"
|
|
13
|
-
|
|
14
|
-
[env.production.vars]
|
|
15
|
-
VITE_factoryContractId = "CCPLERXCJZB7LX2VOSOCBNRN754FRLHI6Y2AVOQBA5L7C2ZJX5RFVVET"
|
|
16
|
-
VITE_launchtubeUrl = "https://launchtube.sdf-ecosystem.workers.dev"
|
|
17
|
-
VITE_mercuryUrl = "https://api.mercurydata.app"
|
|
18
|
-
VITE_nativeContractId = "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
|
|
19
|
-
VITE_networkPassphrase = "Test SDF Network ; September 2015"
|
|
20
|
-
VITE_rpcUrl = "https://soroban-testnet.stellar.org"
|