@learncard/react 2.3.18 → 2.3.19

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
@@ -24,7 +24,7 @@ pnpm install @learncard/react
24
24
  import React, { useState, useEffect } from "react";
25
25
  import '@learncard/react/dist/base.css'; // if not already using tailwind
26
26
  import '@learncard/react/dist/main.css';
27
- import { walletFromKey } from "@learncard/core";
27
+ import { initLearnCard } from "@learncard/core";
28
28
  import { VCCard } from "@learncard/react";
29
29
  import { VC } from "@learncard/types";
30
30
 
@@ -33,7 +33,7 @@ const Test = () => {
33
33
 
34
34
  useEffect(() => {
35
35
  const getVc = async () => {
36
- const wallet = await walletFromKey(''); // Bad practice! You should be generating keys...
36
+ const wallet = await initLearnCard({ seed: 'a' }); // Bad practice! You should be generating keys...
37
37
  const uvc = wallet.getTestVc();
38
38
  setVc(await wallet.issueCredential(uvc));
39
39
  };