Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
feat: user first user
Browse files Browse the repository at this point in the history
  • Loading branch information
kratico committed Jun 28, 2023
1 parent dc0eb93 commit 2a4b382
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/kilt/did.eg.ts → examples/kilt/kilt.eg.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/**
* @title Kilt decentralized identifier (DID)
* @description Get a user public key based on the web3name alias of a Kilt DID.
* @description Get the first user public key based on the user Kilt DID.
*/

import { $didPublicKeyDetails, spiritnet } from "@capi/spiritnet"
import { $, is } from "capi"
import { $, is, ValueRune } from "capi"
import { equals } from "../../deps/std/bytes.ts"

const { owner } = await spiritnet.Web3Names.Owner
.value(new TextEncoder().encode("ingo"))
.unhandle(is(undefined))
.run()
const owner = spiritnet.Web3Names.Owner
.entries({ limit: 1 })
.into(ValueRune)
.access(0, 1, "owner")

const [_, didPublicKeyDetails] = await spiritnet.Did.Did
.value(owner)
Expand Down

0 comments on commit 2a4b382

Please sign in to comment.