Skip to content

Commit

Permalink
fix: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
phanshiyu committed May 8, 2024
1 parent 80cefc4 commit 2c99dc0
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions src/4.0/documentBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,11 @@ type WrappedReturn<Data extends Record<string, unknown> | Record<string, unknown
// new DocumentBuilder([{ hello: "world" }])
// .embeddedRenderer({
// templateName: "haha",
// rendererUrl: "https://google.com",
// rendererUrl: "https://example.com",
// })
// .dnsTxtIssuance({
// identityProofDomain: "https://google.com",
// issuerName: "google",
// identityProofDomain: "https://example.com",
// issuerName: "example",
// issuerId: "urn:uuid:a013fb9d-bb03-4056-b696-05575eceaf42",
// })
// .sign({
Expand All @@ -189,3 +189,18 @@ type WrappedReturn<Data extends Record<string, unknown> | Record<string, unknown
// console.log(signed);
// console.log(signed[0].credentialSubject.hello);
// });

// new DocumentBuilder({ hello: "world" })
// .svgRenderer({
// urlOrEmbeddedSvg: "<svg>{{ hello }}</svg>",
// })
// .blockchainIssuance({
// issuerId: "urn:uuid:a013fb9d-bb03-4056-b696-05575eceaf42",
// issuerName: "example",
// blockchainAddress: "0x1234",
// })
// .wrap()
// .then((wrapped) => {
// console.log(wrapped);
// console.log(wrapped.credentialSubject.hello);
// });

0 comments on commit 2c99dc0

Please sign in to comment.