@verified-network/verified-custody 0.2.1 → 0.2.3

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Verified Custody
2
2
 
3
- Verified Custody is a react submodule for Custody of digital assets. This react module allows users to create Blockchain wallets using PHONE NUMBER/EMAIL and save the secured version on the wallet keys on-chain. It provides extra layer of security by utilizing Co-Signers protocol where users can add up to 5 other users/non-users as their trusted Co-Signers, these custodians serve as signers that can help recover your account keys and sign transactions.
3
+ Verified Custody is a react submodule for Custody of digital assets. This react module allows users to create blockchain wallets where private keys are sharded and stored on the blockchain itself in encrypted form. Users do not have to remember mnemonics or back up private keys. Verified Custody requires co-signers to be added by a wallet user and co-signers can be requested to re-generate the sharded and stored keys.
4
4
 
5
5
  ### Installation:
6
6
 
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import React$1 from 'react';
2
2
 
3
- type VerifiedWalletAction = "connect_wallet" | "getPk" | "invitation" | "signRecovery" | "completeRecovery";
3
+ type VerifiedWalletAction = "connect_wallet" | "getPk" | "invitation" | "signRecovery" | "completeRecovery" | null;
4
4
  type VerifiedWalletVault = {
5
- vaultId: string;
5
+ vaultId?: string;
6
6
  hashedVaultId?: string;
7
7
  hashedVaultPin?: string;
8
- CoSignerId?: string;
8
+ coSignerId?: string;
9
9
  vId?: string;
10
10
  vPh?: string;
11
11
  cId?: string;
@@ -22,12 +22,20 @@ interface VerifiedCustodyProps {
22
22
  origin?: string;
23
23
  title?: string;
24
24
  chainId?: number;
25
- vaultData?: VerifiedWalletVault;
26
25
  txData?: VerifiedWalletTx;
27
26
  reqVaultData?: VerifiedWalletVault;
28
27
  delayPageElement?: React.JSX.Element;
29
28
  delayPageStyle?: React.CSSProperties;
30
29
  helperFunctions?: VerifiedCustodyHelpers;
30
+ popupView?: boolean;
31
+ defaultCountry?: {
32
+ area: string;
33
+ flag: string;
34
+ name: string;
35
+ };
36
+ showLogoPage?: boolean;
37
+ logoPageElement?: React.JSX.Element;
38
+ logoTimeoutTime?: number;
31
39
  }
32
40
  interface VerifiedCustodyHelpers {
33
41
  sendCoSignerInvitation: (channel: "sms" | "email", cosigerId: string, cretorId: string, hashedCretorPin: string) => Promise<boolean>;
@@ -60,6 +68,7 @@ declare const FTUPage: (props: {
60
68
  startupPageElement?: React$1.JSX.Element;
61
69
  setisOnboard?: (isOnboard: boolean) => void;
62
70
  helperFunctions?: VerifiedCustodyHelpers;
71
+ setIsLoading?: (isLoading: boolean) => void;
63
72
  }) => React$1.JSX.Element;
64
73
 
65
74
  declare const EnterPinPage: (props: {
@@ -162,4 +171,4 @@ declare const hashTheString: (text: string) => string;
162
171
  declare const encryptString: (text: string, secretKey: string) => string;
163
172
  declare const decryptString: (encryptedText: string, secretKey: string) => string;
164
173
 
165
- export { AddCosignersPage as AddCoSignersPage, ContactPage, CreatePinPage, EnterPinPage, FTUPage, OTPPage, VerifiedCustody, decryptString, encryptString, hashTheString };
174
+ export { AddCosignersPage as AddCoSignersPage, ContactPage, CreatePinPage, EnterPinPage, FTUPage, OTPPage, VerifiedCustody, type VerifiedCustodyHelpers, type VerifiedCustodyProps, type VerifiedWalletAction, type VerifiedWalletTx, type VerifiedWalletVault, decryptString, encryptString, hashTheString };
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import React$1 from 'react';
2
2
 
3
- type VerifiedWalletAction = "connect_wallet" | "getPk" | "invitation" | "signRecovery" | "completeRecovery";
3
+ type VerifiedWalletAction = "connect_wallet" | "getPk" | "invitation" | "signRecovery" | "completeRecovery" | null;
4
4
  type VerifiedWalletVault = {
5
- vaultId: string;
5
+ vaultId?: string;
6
6
  hashedVaultId?: string;
7
7
  hashedVaultPin?: string;
8
- CoSignerId?: string;
8
+ coSignerId?: string;
9
9
  vId?: string;
10
10
  vPh?: string;
11
11
  cId?: string;
@@ -22,12 +22,20 @@ interface VerifiedCustodyProps {
22
22
  origin?: string;
23
23
  title?: string;
24
24
  chainId?: number;
25
- vaultData?: VerifiedWalletVault;
26
25
  txData?: VerifiedWalletTx;
27
26
  reqVaultData?: VerifiedWalletVault;
28
27
  delayPageElement?: React.JSX.Element;
29
28
  delayPageStyle?: React.CSSProperties;
30
29
  helperFunctions?: VerifiedCustodyHelpers;
30
+ popupView?: boolean;
31
+ defaultCountry?: {
32
+ area: string;
33
+ flag: string;
34
+ name: string;
35
+ };
36
+ showLogoPage?: boolean;
37
+ logoPageElement?: React.JSX.Element;
38
+ logoTimeoutTime?: number;
31
39
  }
32
40
  interface VerifiedCustodyHelpers {
33
41
  sendCoSignerInvitation: (channel: "sms" | "email", cosigerId: string, cretorId: string, hashedCretorPin: string) => Promise<boolean>;
@@ -60,6 +68,7 @@ declare const FTUPage: (props: {
60
68
  startupPageElement?: React$1.JSX.Element;
61
69
  setisOnboard?: (isOnboard: boolean) => void;
62
70
  helperFunctions?: VerifiedCustodyHelpers;
71
+ setIsLoading?: (isLoading: boolean) => void;
63
72
  }) => React$1.JSX.Element;
64
73
 
65
74
  declare const EnterPinPage: (props: {
@@ -162,4 +171,4 @@ declare const hashTheString: (text: string) => string;
162
171
  declare const encryptString: (text: string, secretKey: string) => string;
163
172
  declare const decryptString: (encryptedText: string, secretKey: string) => string;
164
173
 
165
- export { AddCosignersPage as AddCoSignersPage, ContactPage, CreatePinPage, EnterPinPage, FTUPage, OTPPage, VerifiedCustody, decryptString, encryptString, hashTheString };
174
+ export { AddCosignersPage as AddCoSignersPage, ContactPage, CreatePinPage, EnterPinPage, FTUPage, OTPPage, VerifiedCustody, type VerifiedCustodyHelpers, type VerifiedCustodyProps, type VerifiedWalletAction, type VerifiedWalletTx, type VerifiedWalletVault, decryptString, encryptString, hashTheString };