DiscordCert
DiscordCert Certificate Issuance Server
Learn more on GitHub
For a UI that can interact with DiscordCert, go here.
Server Parameters
This server's certifier public key is: 02cf6cdf466951d8dfc9e7c9367511d0007ed6fba35ed42d425cc412fd6cfd4a17
This server will issue certificates with type: 2TgqRC35B1zehGmB21xveZNc7i5iqHc0uxMb+1NMPW4=
Endpoint Documentation
post http://localhost:3002/initialRequest
Generate required initial values to support certificate signing. Requested as a side effect of AuthriteClient.createCertificate.
Example Response
{
"status": "success",
"type": "jVNgF8+rifnz00856b4TkThCAvfiUE4p+t/aHYl1u0c=",
"serialNonce": "BCJDJ1Bf1nu4qrE9j27lEZLxEEQ/meWESfHuX2vGlGQ=",
"validationNonce": "H2/nAFdua/kktwXmYBn/MMgbfE9ckT3zEB6xzKhx7EM=",
"serialNumber": "zFpvOxvuewvvUnmE4DncNHELvlTUVs0bVOK/Z9KR3tc=",
"validationKey": "i0P2MiTG/gt1Q0aUjAfmUp0i9vIq8YEzC5FAYPzE1PU="
}
post http://localhost:3002/identify
Identify Certifier by returning certifierPublicKey and certificateTypes.
Example Response
{
"status": "success",
"certifierPublicKey": "02cf6cdf466951d8dfc9e7c9367511d0007ed6fba35ed42d425cc412fd6cfd4a17",
"certificateTypes": [
[
"2TgqRC35B1zehGmB21xveZNc7i5iqHc0uxMb+1NMPW4=",
[
"userName",
"profilePhoto"
]
]
]
}
post http://localhost:3002/checkVerification
Submit KYC verification proof for the current user
Parameters
- preVerifiedData: [object Object]
- certificateFields: [object Object]
Example Response
{
"status": "verified | notVerified"
}
post http://localhost:3002/signCertificate
Validate and sign a new certificate. Requested as a side effect of AuthriteClient.createCertificate.
Example Response
{
"type": "jVNgF8+rifnz00856b4TkThCAvfiUE4p+t/aHYl1u0c=",
"subject": "02a1c81d78f5c404fd34c418525ba4a3b52be35328c30e67234bfcf30eb8a064d8",
"validationKey": "ONQPCHi7Kvus7VqrbZCYHB6zTi70U6JV+hLafN9emc8=",
"serialNumber": "C9JwOFjAqOVgLi+lK7HpHlxHyYtNNN/Fgp9SJmfikh0=",
"fields": {
"domain": "0qfi4dzxZ/+tdiDViZXOPSOSo38hHNpH89+01Rt1JaCldL+zFHhkhcYt5XO5Bd7z3yUt1zP+Sn0hq64=",
"identity": "f6euJ2qlRS3VRyCY1qD2fcdloUBLsDr98gqNyv/7QzKjUKo2gYQ11mzFGB/lxqAbifL4IQ==",
"when": "kppntXMUk035dZpTWgshdGqJPcSBvgaUG/qYEtKgOAmsNIe0wndEkUeMVqvyo5RuIrbAspbEpY3dn+J2U7HvRtmCNR9ZxEEJ",
"stake": "cVfowEAzvbFbAq6xIYcqi0yosFzUIcWWzCIyV0S53nMa//7JVJgZyATANog7absKajq6Qw=="
},
"revocationOutpoint": "000000000000000000000000000000000000000000000000000000000000000000000000",
"certifier": "025384871bedffb233fdb0b4899285d73d0f0a2b9ad18062a062c01c8bdb2f720a",
"signature": "3045022100a613d9a094fac52779b29c40ba6c82e8deb047e45bda90f9b15e976286d2e3a7022017f4dead5f9241f31f47e7c4bfac6f052067a98021281394a5bc859c5fb251cc"
}
post http://localhost:3002/revokeCertificate
Revokes a previously issued identity certificate
Parameters
- identityKey: identityKeyToRevoke
- serialNumber: abc
Example Response
{
"status": "verified | notVerified"
}
Built with love in 2023 by the Babbage Team