passkey-kit 0.7.0 → 0.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/package.json +3 -3
- package/packages/passkey-factory-sdk/package.json +1 -1
- package/packages/passkey-factory-sdk/src/index.ts +1 -1
- package/packages/passkey-factory-sdk/types/index.d.ts +1 -1
- package/packages/passkey-kit-sdk/package.json +1 -1
- package/packages/passkey-kit-sdk/src/index.ts +10 -6
- package/packages/passkey-kit-sdk/types/index.d.ts +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "passkey-kit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "A helper library for creating and using passkey accounts on the Stellar blockchain.",
|
|
5
5
|
"author": "Tyler van der Hoeven",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"@stellar/stellar-sdk": "12.3.0",
|
|
14
14
|
"base64url": "^3.0.1",
|
|
15
15
|
"buffer": "^6.0.3",
|
|
16
|
-
"passkey-factory-sdk": "0.3.
|
|
17
|
-
"passkey-kit-sdk": "0.3.
|
|
16
|
+
"passkey-factory-sdk": "0.3.1",
|
|
17
|
+
"passkey-kit-sdk": "0.3.1",
|
|
18
18
|
"sac-sdk": "0.1.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
@@ -30,7 +30,7 @@ if (typeof window !== 'undefined') {
|
|
|
30
30
|
export const networks = {
|
|
31
31
|
testnet: {
|
|
32
32
|
networkPassphrase: "Test SDF Network ; September 2015",
|
|
33
|
-
contractId: "
|
|
33
|
+
contractId: "CA3WONARSZHZQCCM5WF5HLD27MIP7RWCQJMID4TLZIWPHQYGJT2CIYWX",
|
|
34
34
|
}
|
|
35
35
|
} as const
|
|
36
36
|
|
|
@@ -4,7 +4,7 @@ import type { Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export declare const networks: {
|
|
5
5
|
readonly testnet: {
|
|
6
6
|
readonly networkPassphrase: "Test SDF Network ; September 2015";
|
|
7
|
-
readonly contractId: "
|
|
7
|
+
readonly contractId: "CA3WONARSZHZQCCM5WF5HLD27MIP7RWCQJMID4TLZIWPHQYGJT2CIYWX";
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export type SignerLimits = readonly [Map<string, Option<Array<SignerKey>>>];
|
|
@@ -30,20 +30,24 @@ if (typeof window !== 'undefined') {
|
|
|
30
30
|
export const networks = {
|
|
31
31
|
testnet: {
|
|
32
32
|
networkPassphrase: "Test SDF Network ; September 2015",
|
|
33
|
-
contractId: "
|
|
33
|
+
contractId: "CA3WONARSZHZQCCM5WF5HLD27MIP7RWCQJMID4TLZIWPHQYGJT2CIYWX",
|
|
34
34
|
}
|
|
35
35
|
} as const
|
|
36
36
|
|
|
37
37
|
export const Errors = {
|
|
38
38
|
1: { message: "NotFound" },
|
|
39
39
|
|
|
40
|
-
2: { message: "
|
|
40
|
+
2: { message: "MissingContext" },
|
|
41
41
|
|
|
42
|
-
3: { message: "
|
|
42
|
+
3: { message: "MissingSignerLimits" },
|
|
43
43
|
|
|
44
|
-
4: { message: "
|
|
44
|
+
4: { message: "FailedPolicySignerLimits" },
|
|
45
45
|
|
|
46
|
-
5: { message: "SignatureKeyValueMismatch" }
|
|
46
|
+
5: { message: "SignatureKeyValueMismatch" },
|
|
47
|
+
|
|
48
|
+
6: { message: "ClientDataJsonChallengeIncorrect" },
|
|
49
|
+
|
|
50
|
+
7: { message: "JsonParseError" }
|
|
47
51
|
}
|
|
48
52
|
export type SignerLimits = readonly [Map<string, Option<Array<SignerKey>>>];
|
|
49
53
|
export type SignerKey = { tag: "Policy", values: readonly [string] } | { tag: "Ed25519", values: readonly [Buffer] } | { tag: "Secp256r1", values: readonly [Buffer] };
|
|
@@ -129,7 +133,7 @@ export interface Client {
|
|
|
129
133
|
export class Client extends ContractClient {
|
|
130
134
|
constructor(public readonly options: ContractClientOptions) {
|
|
131
135
|
super(
|
|
132
|
-
new ContractSpec(["
|
|
136
|
+
new ContractSpec(["AAAABAAAAAAAAAAAAAAABUVycm9yAAAAAAAABwAAAAAAAAAITm90Rm91bmQAAAABAAAAAAAAAA5NaXNzaW5nQ29udGV4dAAAAAAAAgAAAAAAAAATTWlzc2luZ1NpZ25lckxpbWl0cwAAAAADAAAAAAAAABhGYWlsZWRQb2xpY3lTaWduZXJMaW1pdHMAAAAEAAAAAAAAABlTaWduYXR1cmVLZXlWYWx1ZU1pc21hdGNoAAAAAAAABQAAAAAAAAAgQ2xpZW50RGF0YUpzb25DaGFsbGVuZ2VJbmNvcnJlY3QAAAAGAAAAAAAAAA5Kc29uUGFyc2VFcnJvcgAAAAAABw==",
|
|
133
137
|
"AAAAAQAAAAAAAAAAAAAADFNpZ25lckxpbWl0cwAAAAEAAAAAAAAAATAAAAAAAAPsAAAAEwAAA+gAAAPqAAAH0AAAAAlTaWduZXJLZXkAAAA=",
|
|
134
138
|
"AAAAAgAAAAAAAAAAAAAACVNpZ25lcktleQAAAAAAAAMAAAABAAAAAAAAAAZQb2xpY3kAAAAAAAEAAAATAAAAAQAAAAAAAAAHRWQyNTUxOQAAAAABAAAD7gAAACAAAAABAAAAAAAAAAlTZWNwMjU2cjEAAAAAAAABAAAADg==",
|
|
135
139
|
"AAAAAgAAAAAAAAAAAAAACVNpZ25lclZhbAAAAAAAAAMAAAABAAAAAAAAAAZQb2xpY3kAAAAAAAEAAAfQAAAADFNpZ25lckxpbWl0cwAAAAEAAAAAAAAAB0VkMjU1MTkAAAAAAQAAB9AAAAAMU2lnbmVyTGltaXRzAAAAAQAAAAAAAAAJU2VjcDI1NnIxAAAAAAAAAgAAA+4AAABBAAAH0AAAAAxTaWduZXJMaW1pdHM=",
|
|
@@ -4,7 +4,7 @@ import type { Option } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export declare const networks: {
|
|
5
5
|
readonly testnet: {
|
|
6
6
|
readonly networkPassphrase: "Test SDF Network ; September 2015";
|
|
7
|
-
readonly contractId: "
|
|
7
|
+
readonly contractId: "CA3WONARSZHZQCCM5WF5HLD27MIP7RWCQJMID4TLZIWPHQYGJT2CIYWX";
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
export declare const Errors: {
|
|
@@ -23,6 +23,12 @@ export declare const Errors: {
|
|
|
23
23
|
5: {
|
|
24
24
|
message: string;
|
|
25
25
|
};
|
|
26
|
+
6: {
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
7: {
|
|
30
|
+
message: string;
|
|
31
|
+
};
|
|
26
32
|
};
|
|
27
33
|
export type SignerLimits = readonly [Map<string, Option<Array<SignerKey>>>];
|
|
28
34
|
export type SignerKey = {
|