@yourself_id/siwys-react-native 0.33.0 → 0.33.1-expo.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/dist/index.cjs +22199 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +22223 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HDKey } from '@scure/bip32';
|
|
2
|
+
import CipherBase from '@mdip/cipher/dist/esm/cipher-base.js';
|
|
2
3
|
import { WalletBase, CreateAssetOptions, VerifiableCredential, CreateResponseOptions, WalletFile, IssueCredentialsOptions, ChallengeResponse, StoredWallet } from '@mdip/keymaster';
|
|
3
4
|
export * from '@mdip/keymaster';
|
|
4
5
|
import { Operation, ResolveDIDOptions, MdipDocument } from '@mdip/gatekeeper';
|
|
5
6
|
import * as gatekeeper from '@mdip/gatekeeper';
|
|
6
7
|
export { gatekeeper as GatekeeperTypes };
|
|
7
8
|
|
|
9
|
+
interface HDKeyJSON {
|
|
10
|
+
xpriv: string;
|
|
11
|
+
xpub: string;
|
|
12
|
+
}
|
|
13
|
+
declare class CipherReactNative extends CipherBase {
|
|
14
|
+
generateHDKey(mnemonic: string): HDKey;
|
|
15
|
+
generateHDKeyJSON(json: HDKeyJSON): HDKey;
|
|
16
|
+
generateRandomSalt(): string;
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
interface CreateChallengeSpec {
|
|
9
20
|
callback: string;
|
|
10
21
|
credentials?: {
|
|
@@ -32,7 +43,7 @@ interface WalletConfig {
|
|
|
32
43
|
interface KeymasterConfig {
|
|
33
44
|
gatekeeperConfig?: SdkConfig;
|
|
34
45
|
walletDb?: WalletBase;
|
|
35
|
-
cipher?:
|
|
46
|
+
cipher?: CipherReactNative;
|
|
36
47
|
passphrase: string;
|
|
37
48
|
}
|
|
38
49
|
declare class KeymasterReactNative {
|
|
@@ -294,4 +305,4 @@ declare class GatekeeperReactNative {
|
|
|
294
305
|
private validateConfig;
|
|
295
306
|
}
|
|
296
307
|
|
|
297
|
-
export { type CreateChallengeResponse, type CreateChallengeSpec, GatekeeperReactNative, KeymasterReactNative, type KeymasterConfig as KeymasterReactNativeConfig, type SdkConfig, type WalletConfig };
|
|
308
|
+
export { CipherReactNative, type CreateChallengeResponse, type CreateChallengeSpec, GatekeeperReactNative, KeymasterReactNative, type KeymasterConfig as KeymasterReactNativeConfig, type SdkConfig, type WalletConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { HDKey } from '@scure/bip32';
|
|
2
|
+
import CipherBase from '@mdip/cipher/dist/esm/cipher-base.js';
|
|
2
3
|
import { WalletBase, CreateAssetOptions, VerifiableCredential, CreateResponseOptions, WalletFile, IssueCredentialsOptions, ChallengeResponse, StoredWallet } from '@mdip/keymaster';
|
|
3
4
|
export * from '@mdip/keymaster';
|
|
4
5
|
import { Operation, ResolveDIDOptions, MdipDocument } from '@mdip/gatekeeper';
|
|
5
6
|
import * as gatekeeper from '@mdip/gatekeeper';
|
|
6
7
|
export { gatekeeper as GatekeeperTypes };
|
|
7
8
|
|
|
9
|
+
interface HDKeyJSON {
|
|
10
|
+
xpriv: string;
|
|
11
|
+
xpub: string;
|
|
12
|
+
}
|
|
13
|
+
declare class CipherReactNative extends CipherBase {
|
|
14
|
+
generateHDKey(mnemonic: string): HDKey;
|
|
15
|
+
generateHDKeyJSON(json: HDKeyJSON): HDKey;
|
|
16
|
+
generateRandomSalt(): string;
|
|
17
|
+
}
|
|
18
|
+
|
|
8
19
|
interface CreateChallengeSpec {
|
|
9
20
|
callback: string;
|
|
10
21
|
credentials?: {
|
|
@@ -32,7 +43,7 @@ interface WalletConfig {
|
|
|
32
43
|
interface KeymasterConfig {
|
|
33
44
|
gatekeeperConfig?: SdkConfig;
|
|
34
45
|
walletDb?: WalletBase;
|
|
35
|
-
cipher?:
|
|
46
|
+
cipher?: CipherReactNative;
|
|
36
47
|
passphrase: string;
|
|
37
48
|
}
|
|
38
49
|
declare class KeymasterReactNative {
|
|
@@ -294,4 +305,4 @@ declare class GatekeeperReactNative {
|
|
|
294
305
|
private validateConfig;
|
|
295
306
|
}
|
|
296
307
|
|
|
297
|
-
export { type CreateChallengeResponse, type CreateChallengeSpec, GatekeeperReactNative, KeymasterReactNative, type KeymasterConfig as KeymasterReactNativeConfig, type SdkConfig, type WalletConfig };
|
|
308
|
+
export { CipherReactNative, type CreateChallengeResponse, type CreateChallengeSpec, GatekeeperReactNative, KeymasterReactNative, type KeymasterConfig as KeymasterReactNativeConfig, type SdkConfig, type WalletConfig };
|