Response Body:
{
"user": {
"name":"VISHWAS B ANAND",
"email":"[email protected]",
"did":"did:hid:testnet:z6MkpmVuREXbmV16ihExTpXSSrs4R6JDZTcfR9dGH6A9E7i9"
},
"isThridPartyAuth":true,
"expirationDate":"2030-12-31T00:00:00.000Z",
"thridPartyAuthProvider":"Google",
"accessToken":"eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIiwiaXNzIjoiaHR0cHM6Ly9maWRhdG8udXMuYXV0aDAuY29tLyJ9..uED2kH5v4w08NG3H._RDx65_HUcCLigp2fTNnKw7SpDU3jxHWW_tZjWC4wjNRgPiB7vm8eC5zAyrX7yQQWPm3Kpk_GTzTkXeOqEAzkYQL8CdCyT1brgRmCrOfsKoRE7vxJPcQsr0HJSoziju7g7YYastkEd1LN2fqMgXANMr9QV4Gj_g3HSR4J-L3qq-6fRnGwsKsVLpsOcWH30poGSOWdsDcZDkd7mZwJN0IIRUcWo3yMtSnPu_Qad8P72q_Sw8abvYxcU62UDh1mGAhdXn-tFgNRcriDj7x_-j-9F5Il07g7G6usHb3AIUo6RimY1gk5vmeeTl4oA.Abu-tPrMAOcHE5YhG5NaTQ"
}
Response Body:
{
"status": 200,
"message": {
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://raw.githubusercontent.com/hypersign-protocol/hypersign-contexts/main/HypersignCredentialStatus2023.jsonld",
"https://w3id.org/security/suites/ed25519-2020/v1"
],
"id": "vc:hid:testnet:z6Mki9PTNNLXmdVnWQMHdyMfj1qV8G3M5VGbuRxBByLv2a93",
"type": [
"VerifiableCredential",
"PersonhoodCredential"
],
"expirationDate": "2025-03-03T05:33:30Z",
"issuanceDate": "2024-03-03T05:31:51Z",
"issuer": "did:hid:testnet:z6MktWXeAc7j2ShkwEcPDW9JaYYcaTExxbbJKiZhDxo6reC1",
"credentialSubject": {
"baseSixtyFourImage": "data:",
"id": "did:hid:testnet:z6MkpmVuREXbmV16ihExTpXSSrs4R6JDZTcfR9dGH6A9E7i9"
},
"credentialSchema": {
"id": "sch:hid:testnet:z6MkmvHj8Je62Wer4qt4k7z7aZHnLbrufYZBEo469psoNqLT:1.0",
"type": "JsonSchemaValidator2018"
},
"credentialStatus": {
"id": "https://api.prajna.hypersign.id/hypersign-protocol/hidnode/ssi/credential/vc:hid:testnet:z6Mki9PTNNLXmdVnWQMHdyMfj1qV8G3M5VGbuRxBByLv2a93",
"type": "HypersignCredentialStatus2023"
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2024-03-03T05:33:33Z",
"verificationMethod": "did:hid:testnet:z6MktWXeAc7j2ShkwEcPDW9JaYYcaTExxbbJKiZhDxo6reC1#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "zTCkJ5EYf9qNnaYdubXLaHAgdpZPuCfvUaZ7h57KRZBcoKF4oPAPCiZVY2kqAsiDhC1znNJLzAA4ugP1DWoiDFMV"
}
},
"error": null,
"authToken": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiUHJhdGFwIE1yaWRoYSIsImVtYWlsIjoicHJhdGFwbXJpZGhhQGdtYWlsLmNvbSIsImlhdCI6MTcwOTQ0NDAxMCwiZXhwIjoxNzA5NzAzMjEwfQ.KZJNC2Lyrbz8hN8rFcvaV0S5IZNn_fMOIaPpf3HUnNEcVgzJnYvlScvCjvj4mTbjU8TXoRhl3JvjpgNVDHVSjQ"
}
{
"status": 403,
"message": "User already exists",
"error": null,
"data": {
"docId": "hs:doc:lvh7mu3x7q8j2by4dzpii_fwudh7h8nm_bunnpty7v0",
"sequence": 0,
"userId": "[email protected]"
},
"authToken": "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiUHJhdGFwIE1yaWRoYSIsImVtYWlsIjoicHJhdGFwbXJpZGhhQGdtYWlsLmNvbSIsImlhdCI6MTcwOTQ0Mzk3MiwiZXhwIjoxNzA5NzAzMTcyfQ.CIWTlkYNxbGZjQHPpafA30t8L7fwlDmJZdurP4679jTqJIZJlfApPu7j4SJ5Xfy5GynuJcLMiUBxC3R1SLKgdw"
}
GET https://authserver.hypersign.id/hs/api/v2/vcstatus/vc:hid:testnet:z6Mki9PTNNLXmdVnWQMHdyMfj1qV8G3M5VGbuRxBByLv2a93
{
"status": 200,
"message": "VC found",
"error": "",
"vc": {
"credentialStatus": {
"credentialStatusDocument": {
"context": [
"https://raw.githubusercontent.com/hypersign-protocol/hypersign-contexts/main/CredentialStatus.jsonld",
"https://w3id.org/security/suites/ed25519-2020/v1"
],
"id": "vc:hid:testnet:z6Mki9PTNNLXmdVnWQMHdyMfj1qV8G3M5VGbuRxBByLv2a93",
"revoked": false,
"suspended": false,
"remarks": "Credential is active",
"issuer": "did:hid:testnet:z6MktWXeAc7j2ShkwEcPDW9JaYYcaTExxbbJKiZhDxo6reC1",
"issuanceDate": "2024-03-03T05:31:51Z",
"credentialMerkleRootHash": "55073b6815dec87d5e52cd2399348da57ef830052cc98382b7f6150cec806122"
},
"credentialStatusProof": {
"type": "Ed25519Signature2020",
"created": "2024-03-03T05:33:33Z",
"verificationMethod": "did:hid:testnet:z6MktWXeAc7j2ShkwEcPDW9JaYYcaTExxbbJKiZhDxo6reC1#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z3AUjqSphJQgG4pVZVdrWSVMGfbczxxKpAcdSKniTRDpLxXQWMFwBQUUTfYgHachQX8dsjTsp2J9jw7k5F78yCmk4",
"clientSpecType": "CLIENT_SPEC_TYPE_NONE"
}
}
}
}
REquest body:
{
"user": {
"userId": "[email protected]",
"sequenceNo": 0,
"docId": "randomId"
},
"document": {
"encryptedMessage": ""
}
}
REquest header:
Authorization: Bearer <authToken>
REquest header:
Authorization: Bearer <authToken>
Response
{
"encryptedMessage": ".....",
"userId": "[email protected]"
}
hs:vault:aj5-uQDYZjUAjNW6gKUQ_9skSic
https://authserver.hypersign.id/hs/api/v2/sync/verifytoken https://authserver.hypersign.id/hs/api/v2/vcstatus/vc:hid:testnet:z6Mkhje69o812zhWeTZbCq9u4GjtTovfrKmDTTWPUNpKXxPV
https://authserver.hypersign.id/hs/api/v2/sync
{"user":{"userId":"[email protected]","sequenceNo":0,"docId":"randomId"},"document":{"encryptedMessage":"44df0c26bb39e9c10d03821dd639f568683a74574e53b901800e108e362de6d9j+bZKZzT980ob9pVHHAhFCqBF9TgPAXBqV1jgERK/a0X3EVKbVIDTQcSDVlp0DRj4pmNs4wu0RId+3UuoNDuYdrWSPg7u/08yNMQdBagblQ9w8y4nOIyg4TdYDcKaIlU6OPcaXU/x4BJMrHRRACaYjH5WiibVqT5PdtiqA5EBxR/qRsREWZllAMnUIUEx4NsMZdJT2IpAvEOSdnEroxjdSdok7+cyndjTpl7W7KDbJWhTnTQQQ2JB2b6Eir/RAaoBSlqdCRFEcPkRz/otTwt/8ehdMOEtvRzUuHnuZe/9ggCLxBvgvnwFYEZGcBe6AzmPmvF94a/wtdneSDp8VU7btB3paOmVZllMuYY4qNQKjozNWxbx6CGGoYAyLI/oApJebd+iqpTtYovmrtghGdsoSAH4ZqDISL/Mzu9lEmwiv7/f7xqYEc2XGtmGkUgpGd2CbiuTsbE55gNT2otuFo5bEttYJKE25LYSpALH4P8iaGJ50UuWBQCjtInydFoyOFDpU62RdDzBQePqBfbjPFS8I60V6oBlsjY1K+NHZrSm4ePovUlX+1mfv4O5C6xY1Y3re27KvbeVMpafdUK9r1puaUV6Ofv97LjSJPVeGyJOsOs2pjnp+emCXoDckP9wU+3vOsjKl1rGKIcHO6iTYrOcgWpW4Xxpl8lA8xs9NHs/69FkqDM1iCYMWaOs9I/8naQW+hFYq0TtomiY9grZlnSIwvFvlLmfXtz3BDAnTMeTqqlnt8aAOgCqyG3vAa/4j0nv5z7PkM6HBHUZeCaClsm1AtFIJsrFv0GgQTtfHJZmrS8DdfTH7SGeOZChElVF68skF+pGnAo7ca/PIZofoENQiQg8unA6mwX5vyUEd1QnJqmCd2Ox3qoYYZEkWs9Hsp2IGL2qE0HU0kebci/mJuvUQrHSistQUgZNEmQw/UICsfy1uY4aWwZ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N0YXRpYy5jb20vaW1hZ2VzP3E9dGJuOkFOZDlHY1FNc0pfcG0tdVBkbV9NeU55Uk5wQjlSWGxucDNmOUZzMUdQUSZ1c3FwPUNBVSJ9&redirectUrl=https://google.com
localStorage.removeItem('vaultData');localStorage.removeItem('vaultDataRaw');localStorage.removeItem('vaultPin');localStorage.removeItem('vaultLockStatus');localStorage.removeItem('profile');localStorage.removeItem('presentationRequest')
const presentationRequest = {
"query": [
{
"type": "QueryByExample",
"credentialQuery": [
{
"example": {
"type": "PersonhoodCredential",
"credentialSchema": {
"id": "sch:hid:testnet:z6MkmvHj8Je62Wer4qt4k7z7aZHnLbrufYZBEo469psoNqLT:1.0"
}
},
"trustedIssuer": [
{
"required": true,
"issuer": "did:hid:testnet:zCyAz2wfKjAaWE4FW75KxpZh2wuo9kRAUZyV2xEe93cKr"
}
]
}
]
},
{
"type": "QueryByExample",
"credentialQuery": [
{
"example": {
"type": "PassportCredential",
"credentialSchema": {
"id": "sch:hid:testnet:z6MkgMXXQL7YD7BufNLbjrwueoj4nmih9xujJ6aozJDmzFWx:1.0"
}
},
"trustedIssuer": [
{
"required": true,
"issuer": "did:hid:testnet:zCyAz2wfKjAaWE4FW75KxpZh2wuo9kRAUZyV2xEe93cKr"
}
]
}
]
}
],
"reason": "App needs this data to allow you access this Dapp",
"issuerDID": "did:hid:testnet:z6Mkfp3QJeZnfNhgqCKf21CRWBQ5VWrYqryMiQ7WMaSeBPtM",
"issuerDIDVerificationMethod": "did:hid:testnet:z6Mkfp3QJeZnfNhgqCKf21CRWBQ5VWrYqryMiQ7WMaSeBPtM#key-1",
"domain": "https://comdex.one/",
"logoUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQMsJ_pm-uPdm_MyNyRNpB9RXlnp3f9Fs1GPQ&usqp=CAU"
}
const presentationRequestStr = JSON.stringify(presentationRequest)
const base64Request = btoa(presentationRequestStr)