-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: config ctype #43
base: main
Are you sure you want to change the base?
Conversation
backend/src/config.ts
Outdated
export const CTYPE_HASH = | ||
loadEnv('CTYPE_HASH') || | ||
'0x3291bb126e33b4862d421bfaa1d2f272e6cdfc4f96658988fbcffea8914bd9ac' | ||
export const TRUSTED_ATTESTERS = | ||
loadEnv('TRUSTED_ATTESTERS') || | ||
'did:kilt:4pehddkhEanexVTTzWAtrrfo2R7xPnePpuiJLC7shQU894aY' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to move the hash and did to constants and describe what they are. (which attester, which ctype)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is really no definition for the constants on .env
, the loadEnv()
is going to throw before the fallback option is processed.
// Here you can set which type of credential (cType) your dApp will request users to login. | ||
// You can change it by importing a different one from the list. | ||
// The default is the Email CType by SocialKYC and SocialKYC as the Issuer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which list?
fixes https://github.com/KILTprotocol/ticket/issues/2911
Creating a configurable ctype with trusted attesters and attributes.
How to test:
Please provide a brief step-by-step instruction.
If necessary provide information about dependencies (specific configuration, branches, database dumps, etc.)
Checklist: