Integra Smart Identity Documents

The Integra Smart Identity Documents is very similar to a cryptocurrency wallet, in the fact that it stores the IntegraId and the private key, which is encrypted, in the document. The document is a blockchain-authenticated document that can be used when digitally signing hashes or encrypting information by simply dragging and dropping the document and entering the passphrase.

Overview

The Smart Identity Document is a new concept that will be unique to almost everyone reading this guide. With the ability to verify the authenticity of a blockchain authenticated document, the information contained within the document can be trusted as authentic. Please refer to <TODO: link to smart documents> for more information about blockchain authenticated smart documents. The contents of the private key are encrypted, using AES (Advanced Encryption Standard), and can only be decrypted using the passphrase. The passphrase is not stored anywhere and if lost, the Integra Smart Identity Document will become worthless.

The Smart Identity Document and be used to digitally sign hashes of documents by simply dragging and dropping the document onto a page where the hash is going to be registered to the blockchain. The process of decrypting the private key, in order to use it for digitally signing or encryption, simply uses the passphrase and AES encryption to decrypt the key. The key is only used in the browser for the intended purpose and will be discarded when the given action is completed.

📘

Setting ledger_type to "wallet" in metadata of Smart Identity Document

Standardization of the various documents using ledger_type allows applications to differentiate between various Smart Document types. For all Smart Identity Documents set ledger_type = "wallet" will allow the drag and drop areas to prompt the user for the passphrase and decrypting the private key.

Generation

The easiest way to generate an Integra Smart Identity Document is to use the API call PDF and set the correct parameters. Below is the Node.js code for generating an Integra Smart Identity Document.

const pdfResult = await api.post<unknown, AxiosResponse>( // create pdf with private key
    '/pdf',
  {
    cartridge_type: 'PrivateKey',
    meta_form: JSON.stringify({
        integra_cartridge_type: 'PrivateKey',
        pass_phrase: this.form.pass_phrase,
        ledger_type: 'wallet'
    }),
    data_form: JSON.stringify({}),
    existingGuid: this.$store.state.integraId
  },
  { responseType: 'blob' }
);

Metadata

The data contained within an Integra Smart Identity Document is important to understand for the purpose of integrating with existing and new software packages. Below is the metadata extracted from one of these documents. There are several important fields to note. First, the integraId will be used for matching to current users within the database field that was inserted into the user table/collection. Also, it will be used for the API call Register Identity. Second, the ledger_type = "wallet" is key for any document with an encrypted key requiring the user to input a passphrase. Finally, note the private_key does not look like the private key that was discussed in Public and Private Key Pairs. It is encrypted using AES and is worthless without the passphrase needed to decrypt the key. The walletid value is the pointer to this actual Smart Identity Document hashrecorded on the blockchain. This record can be retrieved using the identityExists API call.

{
  "result": {
    "modDate": "D:20220117194418Z",
    "formjson": "{}",
    "infojson": "{\"integra_cartridge_type\":\"PrivateKey\",\"ledger_type\":\"wallet\"}",
    "integraid": "e3e06369-a52d-410a-a0d6-d4596aeec3bb",
    "integra_cartridge_type": "PrivateKey",
    "ledger_type": "wallet",
    "private_key": "U2FsdGVkX19TrMlQlOF5q0HT4TmGCIlrYTw9rLzpscEIa1wIucjwMdRLlIXeQleJOy1sm5mJA6SdJTnNR5oILu/Of4PDcprl4AnJv04uliaxq4gKTYkKD+Cl8P4Fm+rQGtOeqeeCO/Jou8tur16DotiOQmndoKy6t2wnOCDT3MW1Skag6iW2uZTdndcRJ+MguDPqdmnP380S7x7MGKIxm06SQaRtVNez1goL57h8ievhDYNqxbBjQXc9GcLs+3FTehwAdrT/LHpBMWjWrZQ/WoRAwL/GIp4uw0OTvDtLaDxwEzTUcNhpKR8aZeP0KhPa/mgI09smVAte0n97yxcTxo8JuW5cD1na7fR9+EgJDzcxe8f1iDNd0DtP9IxDTogzXeskcF3YyspXRasVH+KLZY7R1nYgW8B+ma6P3dulydGZdiT9TO6ZJKu8Jvyu3KIXdtIvtmHOXH+ql1WHSjOFJTnwNFLqbI8ivo4KMwydNCCIQJa+RcQS5kOsQHKK8Il+b+BwmFD6eGYZOT0gy+cSp59nTBDNbicwR1H3xSqN0ViErMxbxCpp5b+VPXnijs9hxaeF1OA9Le5pqTpEaRf9vxCWce1jEulg5Oc4jae3ZPGOa60yv5TzVj8ft0yg3fnBz88zwTNLwd+/g8EpVgAMJ5Ym2c7oaMdZ08zzdwkD2s0uCjERAOKCXw79+PnUjC1tBPI9UdRSdcHsuMvVHPTXbbGBXknr+5Qa932WpiOGdFaQXIVRQ5Ihr2A3ucChkbZSJkQ5CUmeBTGWtcIQj1Kwln+K25GK9dOxIb7tOrhnS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ljQ0BooMfTyJLp/OJcOGAO9J+4iZC10RQDpG4ZtgYsYW3PH5mf0fc2lDc3XkME7citu0yvYrBksjn1YvnCRb/b/iNG4lJUHLgt1UqhTp6wj3XeVB4niWnKh2oYySEwLG/v2d50JOlRKFmHYrHbeYgoHqRcPuGynoqN6gThNf6LskEEMCLreAvlGlS2OYH3Ar8zk2X/Vafoz1YxU6Z7oMetB5F9UYEHfLpWRUZREifclU5+EkvrN/Hwukp81F0ugBL10HmJlVFi8bwS9Bi6uKMNFV9BC9MHXurIaozDKansbL4izo",
    "walletid": "dc47b250-77cd-11ec-9349-756913e6001a"
  },
  "creationDate": "2022-01-17T19:44:24.194Z",
  "transactionId": "b7ad1bbfba99717bdac3c76743278803de552782b22fa228e35745b76e7ba24d"
}

The next section will explore the world of attestation documents and how they are beneficial in the blockchain ecosystem.


Did this page help you?