connectWithSeed
This method allows authentication using an existing seed.
An Ed25519
provider will be initialized using the seed and a did:key
session initialized to be used with Ceramic.
DIDs using this method of authentication are meant for Credential generation and cannot utilize Lit.
How to use?
const res = await orbis.connectWithSeed(seed);
Parameters
seed
-Uint8Array(32)
this argument can be generated usingrandomSeed
Returns
{
status: 200,
did: "did:key:...",
details: null,
result: "Success connecting to the did:key."
}
Examples
Connect using a seed
In order to generate a seed randomSeed
method is used.
/** Generate a new seed */
const seed = randomSeed()
const res = await orbis.connectWithSeed(seed)
console.log(res)