Construction
Last updated
Last updated
Depending on your use-case and specific needs, constructing a LearnCard is likely as simple as the following code:
For a full description of instantiating a LearnCard by configuration, check out the full documentation on the initLearnCard
function:
There be dragons here. 🐉
In production environments, take great care and caution when generating and storing key material. Insufficient entropy or insecure storage, among other vectors, can easily compromise your data and identities.
How to generate and store keys is left to you, the consumer. However, if you'd like to simply generate a random key, you can do so with the following code:
To speed up instantiation of the wallet, you can host our didkit wasm binary yourself.
If you're curious about what the above code is doing, read more here.
Next, refer to our documentation on Managing Seed Phrase: