Skip to content

Commit

Permalink
feat(iam): customize wallet signing message when verifying stamps
Browse files Browse the repository at this point in the history
message: "I commit that this stamp is my unique and only <provider name> verification for Passport."

[passportxyz#166]
  • Loading branch information
shavinac committed Jun 8, 2022
1 parent 15ad882 commit 1d55060
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions iam/src/utils/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
import type { Provider } from "../types";
import type { RequestPayload, ChallengePayload, VerifiedPayload } from "@dpopp/types";

// ---- Return randomBytes as a challenge to test that the user has control of a provided address
import crypto from "crypto";

// Collate all Providers to abstract verify logic
export class Providers {
// collect providers against instance
Expand Down Expand Up @@ -34,7 +31,7 @@ export class Providers {
record: {
address: payload.address,
type: payload.type,
challenge: crypto.randomBytes(32).toString("hex"),
challenge: `I commit that this stamp is my unique and only ${payload.type} verification for Passport.`,
},
};
} else {
Expand Down

0 comments on commit 1d55060

Please sign in to comment.