Skip to content

Commit

Permalink
feat[identidy]: adjusting credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
nutrina committed Jan 17, 2024
1 parent 1f35d05 commit 7655f30
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions identity/src/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ type CredentialExpiresAt = {
};

type Eip712CredentialSubject = {
"@context": object;
[k: string]: any;
};

Expand Down Expand Up @@ -165,7 +164,7 @@ export const issueChallengeCredential = async (
challenge: "https://schema.org/Text",
address: "https://schema.org/Text",
},

id: `did:pkh:eip155:1:${record.address}`,
provider: `challenge-${record.type}`,
// extra fields to convey challenge data
Expand Down Expand Up @@ -249,7 +248,7 @@ export const issueHashedCredential = async (
// },
},
stampCredentialDocument(verificationMethod),
["https://w3id.org/vc/status-list/2021/v1"]
["https://w3id.org/security/suites/eip712sig-2021/v1"]
);
} else {
// generate a verifiableCredential
Expand Down

0 comments on commit 7655f30

Please sign in to comment.