@wishknish/knishio-client-ts 0.9.8 → 1.0.0
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/dist/index.cjs +211 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -34
- package/dist/index.d.ts +40 -34
- package/dist/index.iife.js +212 -48
- package/dist/index.iife.js.map +1 -1
- package/dist/index.js +212 -49
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/AuthToken.ts +47 -25
- package/src/KnishIOClient.ts +40 -12
- package/src/core/Molecule.ts +17 -7
- package/src/core/Wallet.ts +161 -32
- package/src/index.ts +2 -2
- package/src/libraries/GraphQLClient.ts +2 -2
- package/src/schemas/index.ts +2 -1
- package/src/types/crypto.ts +9 -4
- package/src/validation/schemas.ts +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -29,7 +29,7 @@ interface TransferRecipientInput {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
type HashAlgorithm = 'SHAKE256' | 'SHA3-256' | 'BLAKE2B';
|
|
32
|
-
type SignatureAlgorithm = 'XMSS' | '
|
|
32
|
+
type SignatureAlgorithm = 'XMSS' | 'SPHINCS+';
|
|
33
33
|
interface SHAKE256Options {
|
|
34
34
|
input: string | Uint8Array;
|
|
35
35
|
outputLength: number;
|
|
@@ -543,12 +543,13 @@ declare class Wallet {
|
|
|
543
543
|
tokenUnits: any[];
|
|
544
544
|
tradeRates: Record<string, any>;
|
|
545
545
|
molecules: Record<string, any>;
|
|
546
|
+
mlKemParameterSet: 1024 | 768;
|
|
546
547
|
tokenName?: string;
|
|
547
548
|
tokenAmount?: string;
|
|
548
549
|
tokenSupply?: string;
|
|
549
550
|
tokenFungibility?: string;
|
|
550
551
|
createdAt?: string;
|
|
551
|
-
constructor({ secret, bundle, token, address, position, batchId, characters }?: {
|
|
552
|
+
constructor({ secret, bundle, token, address, position, batchId, characters, mlKemParameterSet }?: {
|
|
552
553
|
secret?: string | null;
|
|
553
554
|
bundle?: string | null;
|
|
554
555
|
token?: string;
|
|
@@ -556,13 +557,15 @@ declare class Wallet {
|
|
|
556
557
|
position?: string | null;
|
|
557
558
|
batchId?: string | null;
|
|
558
559
|
characters?: string | null;
|
|
560
|
+
mlKemParameterSet?: 1024 | 768;
|
|
559
561
|
});
|
|
560
|
-
static create({ secret, bundle, token, batchId, characters }: {
|
|
562
|
+
static create({ secret, bundle, token, batchId, characters, mlKemParameterSet }: {
|
|
561
563
|
secret?: string | null;
|
|
562
564
|
bundle?: string | null;
|
|
563
565
|
token?: string;
|
|
564
566
|
batchId?: string | null;
|
|
565
567
|
characters?: string | null;
|
|
568
|
+
mlKemParameterSet?: 1024 | 768;
|
|
566
569
|
}): Wallet;
|
|
567
570
|
static generateKey({ secret, token, position }: {
|
|
568
571
|
secret: string;
|
|
@@ -582,6 +585,8 @@ declare class Wallet {
|
|
|
582
585
|
splitUnitsMulti(recipientUnitLists: string[][], recipientWallets: Wallet[], remainderWallet: Wallet): void;
|
|
583
586
|
getTokenUnitsData(): any[];
|
|
584
587
|
isShadow(): boolean;
|
|
588
|
+
private deriveMlKemKeypair;
|
|
589
|
+
static mlKemParameterSetFromPubkey(pubkey: string | null | undefined): 1024 | 768 | null;
|
|
585
590
|
initializeMLKEM(): void;
|
|
586
591
|
encryptMessage(message: any, recipientPubkey: string): Promise<{
|
|
587
592
|
cipherText: string;
|
|
@@ -596,8 +601,8 @@ declare class Wallet {
|
|
|
596
601
|
encryptedMessage: string;
|
|
597
602
|
}): Promise<string | null>;
|
|
598
603
|
hashShare(pubkey: string): string;
|
|
599
|
-
|
|
600
|
-
|
|
604
|
+
encryptStringML(message: any, recipientPubkey: string): Promise<string>;
|
|
605
|
+
decryptMyMessageML(map: Record<string, {
|
|
601
606
|
cipherText: string;
|
|
602
607
|
encryptedMessage: string;
|
|
603
608
|
}>): Promise<string | null>;
|
|
@@ -732,7 +737,8 @@ declare class Molecule {
|
|
|
732
737
|
continuIdPosition: string | null;
|
|
733
738
|
parentHashes: string[];
|
|
734
739
|
local?: number;
|
|
735
|
-
|
|
740
|
+
mlKemParameterSet: 1024 | 768;
|
|
741
|
+
constructor({ secret, bundle, sourceWallet, remainderWallet, cellSlug, version, continuIdPosition, mlKemParameterSet }?: {
|
|
736
742
|
secret?: string | null;
|
|
737
743
|
bundle?: string | null;
|
|
738
744
|
sourceWallet?: Wallet | null;
|
|
@@ -740,6 +746,7 @@ declare class Molecule {
|
|
|
740
746
|
cellSlug?: string | null;
|
|
741
747
|
version?: string | number | null;
|
|
742
748
|
continuIdPosition?: string | null;
|
|
749
|
+
mlKemParameterSet?: 1024 | 768 | null;
|
|
743
750
|
});
|
|
744
751
|
get cellSlugDelimiter(): string;
|
|
745
752
|
getIsotopes(isotopes: AtomIsotope | AtomIsotope[]): Atom[];
|
|
@@ -961,6 +968,17 @@ declare class GraphQLClient implements GraphQLClient$1 {
|
|
|
961
968
|
socketDisconnect(): void;
|
|
962
969
|
}
|
|
963
970
|
|
|
971
|
+
type AuthTokenSnapshot = {
|
|
972
|
+
token: string;
|
|
973
|
+
expiresAt: number;
|
|
974
|
+
pubkey: string;
|
|
975
|
+
encrypt: boolean;
|
|
976
|
+
wallet?: {
|
|
977
|
+
position: string | null;
|
|
978
|
+
characters: string | null;
|
|
979
|
+
mlKemParameterSet?: 1024 | 768;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
964
982
|
declare class AuthToken {
|
|
965
983
|
private $__token;
|
|
966
984
|
private $__expiresAt;
|
|
@@ -979,16 +997,8 @@ declare class AuthToken {
|
|
|
979
997
|
encrypt: boolean;
|
|
980
998
|
pubkey: string;
|
|
981
999
|
}, wallet: Wallet): AuthToken;
|
|
982
|
-
static
|
|
983
|
-
|
|
984
|
-
expiresAt: number;
|
|
985
|
-
pubkey: string;
|
|
986
|
-
encrypt: boolean;
|
|
987
|
-
wallet: {
|
|
988
|
-
position: string;
|
|
989
|
-
characters: string | null;
|
|
990
|
-
};
|
|
991
|
-
}, secret: string): AuthToken;
|
|
1000
|
+
static resolveMlKemParameterSet(snapshot: AuthTokenSnapshot): 1024 | 768;
|
|
1001
|
+
static restore(snapshot: AuthTokenSnapshot, secret: string): AuthToken;
|
|
992
1002
|
setWallet(wallet: Wallet): void;
|
|
993
1003
|
getWallet(): Wallet | undefined;
|
|
994
1004
|
getToken(): string;
|
|
@@ -1002,16 +1012,7 @@ declare class AuthToken {
|
|
|
1002
1012
|
pubkey: string;
|
|
1003
1013
|
wallet: Wallet | undefined;
|
|
1004
1014
|
};
|
|
1005
|
-
toSnapshot():
|
|
1006
|
-
token: string;
|
|
1007
|
-
expiresAt: number;
|
|
1008
|
-
pubkey: string;
|
|
1009
|
-
encrypt: boolean;
|
|
1010
|
-
wallet?: {
|
|
1011
|
-
position: string | null;
|
|
1012
|
-
characters: string | null;
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
+
toSnapshot(): AuthTokenSnapshot;
|
|
1015
1016
|
}
|
|
1016
1017
|
|
|
1017
1018
|
interface UniversalResponse<T> {
|
|
@@ -1214,6 +1215,7 @@ declare class KnishIOClient {
|
|
|
1214
1215
|
private $__authTokenObjects;
|
|
1215
1216
|
private $__authToken;
|
|
1216
1217
|
private $__authInProcess;
|
|
1218
|
+
private $__mlKemParameterSet;
|
|
1217
1219
|
private $__remainderWallet;
|
|
1218
1220
|
private lastMoleculeQuery;
|
|
1219
1221
|
private abortControllers;
|
|
@@ -1231,8 +1233,9 @@ declare class KnishIOClient {
|
|
|
1231
1233
|
logging?: boolean;
|
|
1232
1234
|
defaultRequestPolicy?: RequestPolicy | null;
|
|
1233
1235
|
secretStorage?: ISecretStorageProvider | null;
|
|
1236
|
+
mlKemParameterSet?: 1024 | 768;
|
|
1234
1237
|
});
|
|
1235
|
-
initialize({ uri, cellSlug, socket, client, serverSdkVersion, logging, defaultRequestPolicy }: {
|
|
1238
|
+
initialize({ uri, cellSlug, socket, client, serverSdkVersion, logging, defaultRequestPolicy, mlKemParameterSet }: {
|
|
1236
1239
|
uri: string | string[];
|
|
1237
1240
|
cellSlug?: string | null;
|
|
1238
1241
|
socket?: {
|
|
@@ -1243,7 +1246,10 @@ declare class KnishIOClient {
|
|
|
1243
1246
|
serverSdkVersion?: number;
|
|
1244
1247
|
logging?: boolean;
|
|
1245
1248
|
defaultRequestPolicy?: RequestPolicy | null;
|
|
1249
|
+
mlKemParameterSet?: 1024 | 768;
|
|
1246
1250
|
}): void;
|
|
1251
|
+
getMlKemParameterSet(): 1024 | 768;
|
|
1252
|
+
setMlKemParameterSet(parameterSet: 1024 | 768): this;
|
|
1247
1253
|
getRandomUri(): string;
|
|
1248
1254
|
switchEncryption(encrypt: boolean): boolean;
|
|
1249
1255
|
deinitialize(): void;
|
|
@@ -2199,15 +2205,15 @@ declare function withSecureBytes<T>(bytes: Uint8Array, fn: (bytes: Uint8Array) =
|
|
|
2199
2205
|
declare function withSecureString<T>(secret: string, fn: (cleanSecret: string) => Promise<T> | T): Promise<T>;
|
|
2200
2206
|
declare function constantTimeCompare(a: Uint8Array | string, b: Uint8Array | string): boolean;
|
|
2201
2207
|
|
|
2202
|
-
declare const SDK_VERSION = "0.
|
|
2208
|
+
declare const SDK_VERSION = "1.0.0";
|
|
2203
2209
|
declare const SDK_NAME = "KnishIO-Client-TS";
|
|
2204
2210
|
declare const COMPATIBLE_SERVER_VERSIONS: number[];
|
|
2205
2211
|
declare const SDK_INFO: {
|
|
2206
2212
|
readonly name: "KnishIO-Client-TS";
|
|
2207
|
-
readonly version: "0.
|
|
2213
|
+
readonly version: "1.0.0";
|
|
2208
2214
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2209
2215
|
readonly compatibleServerVersions: number[];
|
|
2210
|
-
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-
|
|
2216
|
+
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
2211
2217
|
readonly build: {
|
|
2212
2218
|
readonly target: "ES2022";
|
|
2213
2219
|
readonly formats: readonly ["esm", "cjs", "iife"];
|
|
@@ -2232,10 +2238,10 @@ declare const DevUtils: {
|
|
|
2232
2238
|
nodeVersion: string;
|
|
2233
2239
|
environment: string;
|
|
2234
2240
|
name: "KnishIO-Client-TS";
|
|
2235
|
-
version: "0.
|
|
2241
|
+
version: "1.0.0";
|
|
2236
2242
|
description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2237
2243
|
compatibleServerVersions: number[];
|
|
2238
|
-
features: readonly ["Post-quantum cryptography (XMSS, ML-
|
|
2244
|
+
features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
2239
2245
|
build: {
|
|
2240
2246
|
readonly target: "ES2022";
|
|
2241
2247
|
readonly formats: readonly ["esm", "cjs", "iife"];
|
|
@@ -2259,10 +2265,10 @@ declare const KnishIO: {
|
|
|
2259
2265
|
SDK_VERSION: string;
|
|
2260
2266
|
SDK_INFO: {
|
|
2261
2267
|
readonly name: "KnishIO-Client-TS";
|
|
2262
|
-
readonly version: "0.
|
|
2268
|
+
readonly version: "1.0.0";
|
|
2263
2269
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2264
2270
|
readonly compatibleServerVersions: number[];
|
|
2265
|
-
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-
|
|
2271
|
+
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
2266
2272
|
readonly build: {
|
|
2267
2273
|
readonly target: "ES2022";
|
|
2268
2274
|
readonly formats: readonly ["esm", "cjs", "iife"];
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ interface TransferRecipientInput {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
type HashAlgorithm = 'SHAKE256' | 'SHA3-256' | 'BLAKE2B';
|
|
32
|
-
type SignatureAlgorithm = 'XMSS' | '
|
|
32
|
+
type SignatureAlgorithm = 'XMSS' | 'SPHINCS+';
|
|
33
33
|
interface SHAKE256Options {
|
|
34
34
|
input: string | Uint8Array;
|
|
35
35
|
outputLength: number;
|
|
@@ -543,12 +543,13 @@ declare class Wallet {
|
|
|
543
543
|
tokenUnits: any[];
|
|
544
544
|
tradeRates: Record<string, any>;
|
|
545
545
|
molecules: Record<string, any>;
|
|
546
|
+
mlKemParameterSet: 1024 | 768;
|
|
546
547
|
tokenName?: string;
|
|
547
548
|
tokenAmount?: string;
|
|
548
549
|
tokenSupply?: string;
|
|
549
550
|
tokenFungibility?: string;
|
|
550
551
|
createdAt?: string;
|
|
551
|
-
constructor({ secret, bundle, token, address, position, batchId, characters }?: {
|
|
552
|
+
constructor({ secret, bundle, token, address, position, batchId, characters, mlKemParameterSet }?: {
|
|
552
553
|
secret?: string | null;
|
|
553
554
|
bundle?: string | null;
|
|
554
555
|
token?: string;
|
|
@@ -556,13 +557,15 @@ declare class Wallet {
|
|
|
556
557
|
position?: string | null;
|
|
557
558
|
batchId?: string | null;
|
|
558
559
|
characters?: string | null;
|
|
560
|
+
mlKemParameterSet?: 1024 | 768;
|
|
559
561
|
});
|
|
560
|
-
static create({ secret, bundle, token, batchId, characters }: {
|
|
562
|
+
static create({ secret, bundle, token, batchId, characters, mlKemParameterSet }: {
|
|
561
563
|
secret?: string | null;
|
|
562
564
|
bundle?: string | null;
|
|
563
565
|
token?: string;
|
|
564
566
|
batchId?: string | null;
|
|
565
567
|
characters?: string | null;
|
|
568
|
+
mlKemParameterSet?: 1024 | 768;
|
|
566
569
|
}): Wallet;
|
|
567
570
|
static generateKey({ secret, token, position }: {
|
|
568
571
|
secret: string;
|
|
@@ -582,6 +585,8 @@ declare class Wallet {
|
|
|
582
585
|
splitUnitsMulti(recipientUnitLists: string[][], recipientWallets: Wallet[], remainderWallet: Wallet): void;
|
|
583
586
|
getTokenUnitsData(): any[];
|
|
584
587
|
isShadow(): boolean;
|
|
588
|
+
private deriveMlKemKeypair;
|
|
589
|
+
static mlKemParameterSetFromPubkey(pubkey: string | null | undefined): 1024 | 768 | null;
|
|
585
590
|
initializeMLKEM(): void;
|
|
586
591
|
encryptMessage(message: any, recipientPubkey: string): Promise<{
|
|
587
592
|
cipherText: string;
|
|
@@ -596,8 +601,8 @@ declare class Wallet {
|
|
|
596
601
|
encryptedMessage: string;
|
|
597
602
|
}): Promise<string | null>;
|
|
598
603
|
hashShare(pubkey: string): string;
|
|
599
|
-
|
|
600
|
-
|
|
604
|
+
encryptStringML(message: any, recipientPubkey: string): Promise<string>;
|
|
605
|
+
decryptMyMessageML(map: Record<string, {
|
|
601
606
|
cipherText: string;
|
|
602
607
|
encryptedMessage: string;
|
|
603
608
|
}>): Promise<string | null>;
|
|
@@ -732,7 +737,8 @@ declare class Molecule {
|
|
|
732
737
|
continuIdPosition: string | null;
|
|
733
738
|
parentHashes: string[];
|
|
734
739
|
local?: number;
|
|
735
|
-
|
|
740
|
+
mlKemParameterSet: 1024 | 768;
|
|
741
|
+
constructor({ secret, bundle, sourceWallet, remainderWallet, cellSlug, version, continuIdPosition, mlKemParameterSet }?: {
|
|
736
742
|
secret?: string | null;
|
|
737
743
|
bundle?: string | null;
|
|
738
744
|
sourceWallet?: Wallet | null;
|
|
@@ -740,6 +746,7 @@ declare class Molecule {
|
|
|
740
746
|
cellSlug?: string | null;
|
|
741
747
|
version?: string | number | null;
|
|
742
748
|
continuIdPosition?: string | null;
|
|
749
|
+
mlKemParameterSet?: 1024 | 768 | null;
|
|
743
750
|
});
|
|
744
751
|
get cellSlugDelimiter(): string;
|
|
745
752
|
getIsotopes(isotopes: AtomIsotope | AtomIsotope[]): Atom[];
|
|
@@ -961,6 +968,17 @@ declare class GraphQLClient implements GraphQLClient$1 {
|
|
|
961
968
|
socketDisconnect(): void;
|
|
962
969
|
}
|
|
963
970
|
|
|
971
|
+
type AuthTokenSnapshot = {
|
|
972
|
+
token: string;
|
|
973
|
+
expiresAt: number;
|
|
974
|
+
pubkey: string;
|
|
975
|
+
encrypt: boolean;
|
|
976
|
+
wallet?: {
|
|
977
|
+
position: string | null;
|
|
978
|
+
characters: string | null;
|
|
979
|
+
mlKemParameterSet?: 1024 | 768;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
964
982
|
declare class AuthToken {
|
|
965
983
|
private $__token;
|
|
966
984
|
private $__expiresAt;
|
|
@@ -979,16 +997,8 @@ declare class AuthToken {
|
|
|
979
997
|
encrypt: boolean;
|
|
980
998
|
pubkey: string;
|
|
981
999
|
}, wallet: Wallet): AuthToken;
|
|
982
|
-
static
|
|
983
|
-
|
|
984
|
-
expiresAt: number;
|
|
985
|
-
pubkey: string;
|
|
986
|
-
encrypt: boolean;
|
|
987
|
-
wallet: {
|
|
988
|
-
position: string;
|
|
989
|
-
characters: string | null;
|
|
990
|
-
};
|
|
991
|
-
}, secret: string): AuthToken;
|
|
1000
|
+
static resolveMlKemParameterSet(snapshot: AuthTokenSnapshot): 1024 | 768;
|
|
1001
|
+
static restore(snapshot: AuthTokenSnapshot, secret: string): AuthToken;
|
|
992
1002
|
setWallet(wallet: Wallet): void;
|
|
993
1003
|
getWallet(): Wallet | undefined;
|
|
994
1004
|
getToken(): string;
|
|
@@ -1002,16 +1012,7 @@ declare class AuthToken {
|
|
|
1002
1012
|
pubkey: string;
|
|
1003
1013
|
wallet: Wallet | undefined;
|
|
1004
1014
|
};
|
|
1005
|
-
toSnapshot():
|
|
1006
|
-
token: string;
|
|
1007
|
-
expiresAt: number;
|
|
1008
|
-
pubkey: string;
|
|
1009
|
-
encrypt: boolean;
|
|
1010
|
-
wallet?: {
|
|
1011
|
-
position: string | null;
|
|
1012
|
-
characters: string | null;
|
|
1013
|
-
};
|
|
1014
|
-
};
|
|
1015
|
+
toSnapshot(): AuthTokenSnapshot;
|
|
1015
1016
|
}
|
|
1016
1017
|
|
|
1017
1018
|
interface UniversalResponse<T> {
|
|
@@ -1214,6 +1215,7 @@ declare class KnishIOClient {
|
|
|
1214
1215
|
private $__authTokenObjects;
|
|
1215
1216
|
private $__authToken;
|
|
1216
1217
|
private $__authInProcess;
|
|
1218
|
+
private $__mlKemParameterSet;
|
|
1217
1219
|
private $__remainderWallet;
|
|
1218
1220
|
private lastMoleculeQuery;
|
|
1219
1221
|
private abortControllers;
|
|
@@ -1231,8 +1233,9 @@ declare class KnishIOClient {
|
|
|
1231
1233
|
logging?: boolean;
|
|
1232
1234
|
defaultRequestPolicy?: RequestPolicy | null;
|
|
1233
1235
|
secretStorage?: ISecretStorageProvider | null;
|
|
1236
|
+
mlKemParameterSet?: 1024 | 768;
|
|
1234
1237
|
});
|
|
1235
|
-
initialize({ uri, cellSlug, socket, client, serverSdkVersion, logging, defaultRequestPolicy }: {
|
|
1238
|
+
initialize({ uri, cellSlug, socket, client, serverSdkVersion, logging, defaultRequestPolicy, mlKemParameterSet }: {
|
|
1236
1239
|
uri: string | string[];
|
|
1237
1240
|
cellSlug?: string | null;
|
|
1238
1241
|
socket?: {
|
|
@@ -1243,7 +1246,10 @@ declare class KnishIOClient {
|
|
|
1243
1246
|
serverSdkVersion?: number;
|
|
1244
1247
|
logging?: boolean;
|
|
1245
1248
|
defaultRequestPolicy?: RequestPolicy | null;
|
|
1249
|
+
mlKemParameterSet?: 1024 | 768;
|
|
1246
1250
|
}): void;
|
|
1251
|
+
getMlKemParameterSet(): 1024 | 768;
|
|
1252
|
+
setMlKemParameterSet(parameterSet: 1024 | 768): this;
|
|
1247
1253
|
getRandomUri(): string;
|
|
1248
1254
|
switchEncryption(encrypt: boolean): boolean;
|
|
1249
1255
|
deinitialize(): void;
|
|
@@ -2199,15 +2205,15 @@ declare function withSecureBytes<T>(bytes: Uint8Array, fn: (bytes: Uint8Array) =
|
|
|
2199
2205
|
declare function withSecureString<T>(secret: string, fn: (cleanSecret: string) => Promise<T> | T): Promise<T>;
|
|
2200
2206
|
declare function constantTimeCompare(a: Uint8Array | string, b: Uint8Array | string): boolean;
|
|
2201
2207
|
|
|
2202
|
-
declare const SDK_VERSION = "0.
|
|
2208
|
+
declare const SDK_VERSION = "1.0.0";
|
|
2203
2209
|
declare const SDK_NAME = "KnishIO-Client-TS";
|
|
2204
2210
|
declare const COMPATIBLE_SERVER_VERSIONS: number[];
|
|
2205
2211
|
declare const SDK_INFO: {
|
|
2206
2212
|
readonly name: "KnishIO-Client-TS";
|
|
2207
|
-
readonly version: "0.
|
|
2213
|
+
readonly version: "1.0.0";
|
|
2208
2214
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2209
2215
|
readonly compatibleServerVersions: number[];
|
|
2210
|
-
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-
|
|
2216
|
+
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
2211
2217
|
readonly build: {
|
|
2212
2218
|
readonly target: "ES2022";
|
|
2213
2219
|
readonly formats: readonly ["esm", "cjs", "iife"];
|
|
@@ -2232,10 +2238,10 @@ declare const DevUtils: {
|
|
|
2232
2238
|
nodeVersion: string;
|
|
2233
2239
|
environment: string;
|
|
2234
2240
|
name: "KnishIO-Client-TS";
|
|
2235
|
-
version: "0.
|
|
2241
|
+
version: "1.0.0";
|
|
2236
2242
|
description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2237
2243
|
compatibleServerVersions: number[];
|
|
2238
|
-
features: readonly ["Post-quantum cryptography (XMSS, ML-
|
|
2244
|
+
features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
2239
2245
|
build: {
|
|
2240
2246
|
readonly target: "ES2022";
|
|
2241
2247
|
readonly formats: readonly ["esm", "cjs", "iife"];
|
|
@@ -2259,10 +2265,10 @@ declare const KnishIO: {
|
|
|
2259
2265
|
SDK_VERSION: string;
|
|
2260
2266
|
SDK_INFO: {
|
|
2261
2267
|
readonly name: "KnishIO-Client-TS";
|
|
2262
|
-
readonly version: "0.
|
|
2268
|
+
readonly version: "1.0.0";
|
|
2263
2269
|
readonly description: "TypeScript SDK for Knish.IO post-blockchain distributed ledger";
|
|
2264
2270
|
readonly compatibleServerVersions: number[];
|
|
2265
|
-
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-
|
|
2271
|
+
readonly features: readonly ["Post-quantum cryptography (XMSS, ML-KEM-1024)", "Cross-platform compatibility", "Type-safe APIs", "DAG-based transaction processing", "GraphQL integration", "Real-time subscriptions", "Cellular architecture support"];
|
|
2266
2272
|
readonly build: {
|
|
2267
2273
|
readonly target: "ES2022";
|
|
2268
2274
|
readonly formats: readonly ["esm", "cjs", "iife"];
|