You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-6Lines changed: 32 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,9 @@ To initialize the sdk, you need to minimally pass a javascript object with follo
23
23
2. BNS(BlockStack Name Service) Node
24
24
3. Currency symbol map of your wallet
25
25
- To help you get started, you can use `cruxdev` as the value which is already configured for our dev test users. It has 5 pre-registered crypto symbols for a fast start. You can contact us at [telegram](https://t.me/cruxpay_integration) channel for registration of your own walletClientName.
26
+
3.**privateKey (optional)**
27
+
- Required to re-initialise the CruxClient with same user across different devices.
28
+
- For clients using HD derivation paths, recommended to use the path (`m/889'/0/0'`) for CruxPay keypair node derivation with respect to account indices.
26
29
27
30
`**Note:** Cruxprotocol JS SDK is case insensetive for cryptocurrency symbols and will always output lowercase symbols.`
28
31
@@ -37,7 +40,8 @@ function getPassHashedEncryptionKey() {
- Returns: Promise resolving to a _boolean_ indicating whether a particular Crux ID is available for registration.
71
75
72
-
2.##### getAssetMapping()
76
+
2.##### getAssetMap()
73
77
- Description: Get Wallet's asset map with currency symbols as the keys and asset object as the value.
74
78
- Params: None
75
79
- Returns: [IResolvedClientAssetMapping](#iresolvedclientassetmapping) which has symbols and asset objects.
76
80
77
81
3.##### registerCruxID(cruxID<onlySubdomain>)
78
-
- Description: Reserves/registers the cruxID for the user. The user can link any blockchain address to his CruxID with the help of newAddressMap sent. The addresses are now publicly linked and can be resolved.
79
-
- Note: To get which currencies can be part of newAddressMap please call `getAssetMapping()`.
82
+
- Description: Reserves/registers the cruxID for the user. The user can link any blockchain address to his CruxID immediately after registration using [putAddressMap](#putaddressmap).
80
83
- Params:
81
84
- subdomain part of [CruxID](#cruxid)
82
85
- Returns: Promise resolving on successful call to the registrar.
- change list of publicly accessible currency addresses.
124
+
-publish/change list of publicly accessible currency addresses.
99
125
- change the value of addressHash and/or secIdentifier to another one.
100
-
- Note: To get which currencies can be part of newAddressMap please call `getAssetMapping()`.
126
+
- Note:The addresses are now publicly linked and can be resolved. To get which currencies can be part of newAddressMap please call `getAssetMapping()`.
101
127
- Params:
102
128
- newAddressMap of type [IAddressMapping](#iaddressmapping) has modified map has symbols and addresses a user wants to publically expose with CruxID.
103
129
- Returns:Promise resolving to {success: [IPutAddressMapSuccess](#iputaddressmapSuccess), failures: [IPutAddressMapFailures](#iputaddressmapfailures)}
0 commit comments