NOM 151 Archiving

NOM 151 is digital data preservation service. Read more about it hereopen in new window.

BEFORE YOU CONTINUE

Make sure that you have your eID Easy API credentials at hand as you'll need them in the following steps. You can follow this short guide to obtain the API credentials.

1. Get hash constancy

For that we'll send a server-side POST request to https://id.eideasy.com/api/nom151/hash

client_id, secret - API credentials (retrieve from admin panel)

hash - SHA256 digest of the document.

The request body will look like this:

{
    "secret": "{{secret}}",
    "client_id": "{{client_id}}",
    "hash": "gJ8p7nCkVaNLQHezFGGWl4JOyAuF64lgkioziQkv79g="
}

Error response:

{
    "error": "Invalid hash provided"
}

Success response:

{
  "constancy": "MIIOdDADAgEAMIIOawYJKoZIhvcNAQcCoIIOXDCCDlgCAQMxDzANBglghkgBZQMEAgEFADCCAaEGCyqGSIb3DQEJEAEEoIIBkASCAYwwggGIAgEBBgxgg2RlCoI8AgQBAgEwMTANBglghkgBZQMEAgEFAAQggJ8p7nCkVaNLQHezFGGWl4JOyAuF64lgkioziQkv79gCCEAon0wwsSCyGA8yMDI0MDEyOTExMTgyOVowBIACAfQCBFLzWmCgggEZpIIBFTCCARExKTAnBgkqhkiG9w0BCQEWGmFjZWRpY29tbXhAZWRpY29tZ3JvdXAuY29tMS4wLAYDVQQKDCVFZGljb211bmljYWNpb25lcyBNZXhpY28gUy5BLiBkZSBDLlYuMQ8wDQYDVQQLDAZOT00xNTExFzAVBgNVBAMMDk5PTTE1MUVESUNPTU1YMT0wOwYDVQQJDDRBdmRhLiBQYXNlbyBkZSBsYSBSZWZvcm1hIDQ4MyBQaXNvcyAyNS0yNyBDdWF1aHRlbW9jMQ4wDAYDVQQREwUwNjUwMDELMAkGA1UEBhMCTVgxGTAXBgNVBAgMEENpdWRhZCBkZSBNZXhpY28xEzARBgNVBAcMCkN1YXVodGVtb2OggghHMIIIQzCCBiugAwIBAgICAMUwDQYJKoZIhvcNAQELBQAwggFFMRcwFQYDVQQHEw5BbHZhcm8gT2JyZWdvbjEZMBcGA1UECBMQQ2l1ZGFkIGRlIE1leGlj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ZIhvcNAQkQAQQwHAYJKoZIhvcNAQkFMQ8XDTI0MDEyOTExMTgyOVowLQYJKoZIhvcNAQk0MSAwHjANBglghkgBZQMEAgEFAKENBgkqhkiG9w0BAQsFADAvBgkqhkiG9w0BCQQxIgQg/48CeeeI8sgXCuQD4kqfNCsIF2RSEHZHLTyM46o9KvMwNwYLKoZIhvcNAQkQAi8xKDAmMCQwIgQgqwTI7nXDY0yAD4Mb0iIGQsll91tQc099sOE0DRLFSWgwDQYJKoZIhvcNAQELBQAEggIAHMVx44RWfTRsqP8DjTVAk8lCwIRCQ7h19amOUNsVd6mAi7MEMZFfr1Hi0JQE0Ybck0tXxO+NDZb8PESRzSAaYd3c2kpaOhLdW4B2v7YVDVe9pXmDW0Ji/F7Y0icP97wOTv014U1fDY/I4ffqWQWey+66Y32Cjww6GHALXkwpRyyyv+4aPdaF/kD//KX1h/T5Y/S3/kvIYzpF7DxZKgQIStzq/iddagA/JW2mhjeRiysQAYqcaxCez14Q6ykMWgLeUMzhNhlQvJ3wn16sSJMshGpfu1QPAzOtmFMwWh3+Z4JDu9UE0W+6p4BSqEwtBHN+HwopVwiJ0VArjTKG6CVWnquU6rLFDh6lC9jKfzUyppLqnWVCFiNRgx3r3AtWHXXkkxJV2VkAFu2QCZ0kEroMFHeGsgNUD0qSSkp2YxA1OUBoG/lF5gn8oPjkSKjHSl71+7/A/Fgo57c5W+azn02XEoiEQpyrE9N4BrqCDo69CSBDqU506oEaHRYMCegSHAnCuLiszfvZf4ryCER1RH8i49HoilJALn633s9YG3C5z78dINfvlq0uwgpzxx3HL3aOl8lJsnM9QXI+f0UCoQdtELeAzxcREmZR89K5MR+Bc2PyB3A+lTVKd4WCaLPPcxXb0uAs27iV8B0CVn/BwWcXJWAYTuVhYKV7dwIq9jaSqIY="
}

Save the this constancy on your service. This is the proof that the document existed at the time of the request.

2. Verify constancy

For that we'll send a server-side POST request to https://id.eideasy.com/api/nom151/hash/verify

client_id, secret - API credentials (retrieve from admin panel)

hash - SHA256 digest of the document.

constancy - constancy in base64 (obtained from the previous step)

The request body will look like this:

{
  "secret": "{{secret}}",
  "client_id": "{{client_id}}",
  "hash": "gJ8p7nCkVaNLQHezFGGWl4JOyAuF64lgkioziQkv79g=",
  "constancy": "MIIOdDADAgEAMIIOawYJKoZIhvcNAQcCoIIOXDCCDlgCAQMxDzANBglghkgBZQMEAgEFADCCAaEGCyqGSIb3DQEJEAEEoIIBkASCAYwwggGIAgEBBgxgg2RlCoI8AgQBAgEwMTANBglghkgBZQMEAgEFAAQggJ8p7nCkVaNLQHezFGGWl4JOyAuF64lgkioziQkv79gCCEAon0wwsSCyGA8yMDI0MDEyOTExMTgyOVowBIACAfQCBFLzWmCgggEZpIIBFTCCARExKTAnBgkqhkiG9w0BCQEWGmFjZWRpY29tbXhAZWRpY29tZ3JvdXAuY29tMS4wLAYDVQQKDCVFZGljb211bmljYWNpb25lcyBNZXhpY28gUy5BLiBkZSBDLlYuMQ8wDQYDVQQLDAZOT00xNTExFzAVBgNVBAMMDk5PTTE1MUVESUNPTU1YMT0wOwYDVQQJDDRBdmRhLiBQYXNlbyBkZSBsYSBSZWZvcm1hIDQ4MyBQaXNvcyAyNS0yNyBDdWF1aHRlbW9jMQ4wDAYDVQQREwUwNjUwMDELMAkGA1UEBhMCTVgxGTAXBgNVBAgMEENpdWRhZCBkZSBNZXhpY28xEzARBgNVBAcMCkN1YXVodGVtb2OggghHMIIIQzCCBiugAwIBAgICAMUwDQYJKoZIhvcNAQELBQAwggFFMRcwFQYDVQQHEw5BbHZhcm8gT2JyZWdvbjEZMBcGA1UECBMQQ2l1ZGFkIGRlIE1leGljbzELMAkGA1UEBhMCTVgxDjAMBgNVBBETBTAxMDMwMSswKQYDVQQJEyJJbnN1cmdlbnRlcyBTdXIgMTk0MCwgQ29sLiBGbG9yaWRhMUcwRQYDVQQDEz5BdXRvcmlkYWQgQ2VydGlmaWNhZG9yYSBSYWl6IFNlZ3VuZGEgZGUgU2VjcmV0YXJpYSBkZSBFY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QkQAi8xKDAmMCQwIgQgqwTI7nXDY0yAD4Mb0iIGQsll91tQc099sOE0DRLFSWgwDQYJKoZIhvcNAQELBQAEggIAHMVx44RWfTRsqP8DjTVAk8lCwIRCQ7h19amOUNsVd6mAi7MEMZFfr1Hi0JQE0Ybck0tXxO+NDZb8PESRzSAaYd3c2kpaOhLdW4B2v7YVDVe9pXmDW0Ji/F7Y0icP97wOTv014U1fDY/I4ffqWQWey+66Y32Cjww6GHALXkwpRyyyv+4aPdaF/kD//KX1h/T5Y/S3/kvIYzpF7DxZKgQIStzq/iddagA/JW2mhjeRiysQAYqcaxCez14Q6ykMWgLeUMzhNhlQvJ3wn16sSJMshGpfu1QPAzOtmFMwWh3+Z4JDu9UE0W+6p4BSqEwtBHN+HwopVwiJ0VArjTKG6CVWnquU6rLFDh6lC9jKfzUyppLqnWVCFiNRgx3r3AtWHXXkkxJV2VkAFu2QCZ0kEroMFHeGsgNUD0qSSkp2YxA1OUBoG/lF5gn8oPjkSKjHSl71+7/A/Fgo57c5W+azn02XEoiEQpyrE9N4BrqCDo69CSBDqU506oEaHRYMCegSHAnCuLiszfvZf4ryCER1RH8i49HoilJALn633s9YG3C5z78dINfvlq0uwgpzxx3HL3aOl8lJsnM9QXI+f0UCoQdtELeAzxcREmZR89K5MR+Bc2PyB3A+lTVKd4WCaLPPcxXb0uAs27iV8B0CVn/BwWcXJWAYTuVhYKV7dwIq9jaSqIY="
}

Error response:

{
  "effective_date": "2024-01-29T11:18:29Z",
  "hash": "gJ8p7nCkVaNLQHezFGGWl4JOyAuF64lgkioziQkv79g=",
  "result": false
}

Success response:

{
  "effective_date": "2024-01-29T11:18:29Z",
  "hash": "gJ8p7nCkVaNLQHezFGGWl4JOyAuF64lgkioziQkv79g=",
  "result": true
}
Last Updated: