Skip to content

Commit

Permalink
feat(did:key): createRandom
Browse files Browse the repository at this point in the history
  • Loading branch information
donatandelic committed Jul 24, 2024
1 parent 9edb33c commit 6876b09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/auth/keyDid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ export class OrbisKeyDidAuth implements IDidAuth {
return uint8ArraytoHex(seed);
}

static async createRandom(): Promise<IDidAuth> {
const seed = await this.generateSeed();

return this.fromSeed(seed);
}

static async fromSession(session: string | KeyDidSession) {
const keySession =
typeof session === "string"
Expand Down

0 comments on commit 6876b09

Please sign in to comment.