@learncard/core 4.0.0 → 5.1.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -21,14 +21,14 @@ pnpm i @learncard/core
21
21
 
22
22
  ### Instantiation
23
23
 
24
- Instantiate a wallet using `walletFromKey`. This method accepts a unique identifier string that is
25
- up to 64 characters long. If it is less than 64 characters, `walletFromKey` will pad the start of
24
+ Instantiate a wallet using `initLearnCard`. This method accepts a unique identifier string that is
25
+ up to 64 characters long. If it is less than 64 characters, `initLearnCard` will pad the start of
26
26
  the string with 0's until it is 64 characters long.
27
27
 
28
28
  ```js
29
- import { walletFromKey } from "@learncard/core";
29
+ import { initLearnCard } from "@learncard/core";
30
30
 
31
- const wallet = await walletFromKey('unique-identifier-that-is-up-to-and-preferably64-characters-long');
31
+ const wallet = await initLearnCard({ seed: 'a'.repeat(64) });
32
32
  ```
33
33
 
34
34
  ### Issuing/Verifying Credentials and Presentations