Skip to content

Create Alastria ID examples

Daniel Luque Quintana edited this page May 23, 2020 · 1 revision

1.createEntity2AlastriaID

Output

------ Example of creating an Alastria ID for a Entity2 with Entity1. ------


 ------ A promise all where prepareAlastriaID and createAlsatriaID transactions are signed and sent ------

	signedAT:
 eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpYXQiOjE1ODk5MTM0MDl9.GmhZK8Wuf_ChMP5ccyOp02Vl8vnngJOueujSvD5_ZGyE2N2x2Ab1-LxTSI-EkIry8eWWaLscYKmjrlp80p-pEg
	signedAIC:
 eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJjcmVhdGVBbGFzdHJpYVRYIjoiMHhmOTAxODg4MjAzNGI4MDgzMDkyN2MwOTRiZDRhMmM4NGVkYjk3YmU1YmVmZjdjZDM0MWJkNjM1NjdlNzNmOGM5ODBiOTAxMjQ2ZDY5ZDk5YTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMjAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMGM0NTAzODJjMWEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDIwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA4MDYxMzMzMzY1MzUzNjYxMzgzMDYyMzk2NDYzMzgzMzYxMzQzNDM1MzYzMjM2MzU2NDM4MzczNzYzMzAzNzM2MzU2MzY1NjEzNzM2MzEzNDM2NjUzNjMyMzUzNTM3MzI2NjYzMzYzNzM5MzgzMDM0NjYzODM4MzYzNzMyMzIzMjYzNjEzMzYzMzgzMTM2MzQzMzMzNjEzOT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mZjNGZhM2MifQ.GBUvrfWqLgXsV-8A1jS_Y-MjIO64rFzMK3S0X0_UE6_CL9LDCeOV8NZrJthqeYZrwvfhBBtmCQF8Xq8IPzvGqg
HASH:  0x8a4259977f936ca6f46365b372a265de17bbaae3cd1058843aa619c40cbf3b2e
RECEIPT:  { blockHash:
   '0x565ed5f34c44b02012c1484d5696b69c4efe79a57e506c16f9eb264edd599593',
  blockNumber: 40131228,
  contractAddress: null,
  cumulativeGasUsed: 45099,
  from: '0xa9728125c573924b2b1ad6a8a8cd9bf6858ced49',
  gasUsed: 45099,
  logs:
   [ { address: '0xBd4a2C84EDB97bE5BEfF7CD341bd63567e73f8C9',
       topics: [Array],
       data: '0x',
       blockNumber: 40131228,
       transactionHash:
        '0x8a4259977f936ca6f46365b372a265de17bbaae3cd1058843aa619c40cbf3b2e',
       transactionIndex: 0,
       blockHash:
        '0x565ed5f34c44b02012c1484d5696b69c4efe79a57e506c16f9eb264edd599593',
       logIndex: 0,
       removed: false,
       id: 'log_3041d16f' } ],
  logsBloom:
   '0x00000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000010000000000000000000000010000000000400000000000000000000000000000000000000000000000040000000000000000000000000008000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0x8a4259977f936ca6f46365b372a265de17bbaae3cd1058843aa619c40cbf3b2e',
  transactionIndex: 0 }
HASH:  0xe04e5075f79dae968ab1cf81a5d980a4fcf8ce65f30993d13d47dc1034ba3ab1
RECEIPT:  { blockHash:
   '0x7529312a210e9a3189e1a8781e6c943cab18a74432ff079b70cd8ced1f362f13',
  blockNumber: 40131231,
  contractAddress: null,
  cumulativeGasUsed: 454654,
  from: '0xad88f1a89cf02a32010b971d8c8af3a2c7b3bd94',
  gasUsed: 454654,
  logs:
   [ { address: '0x20668a6A410Edb611a0D394866462508E5d5e60A',
       topics: [Array],
       data:
        '0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c450382c1a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080613333653536613830623964633833613434353632363564383737633037363563656137363134366536323535373266633637393830346638383637323232636133633831363433336139623665363639306230623865393139666661383734393832373036653831323331346161653039643835666336326663346661336300000000000000000000000000000000000000000000000000000000',
       blockNumber: 40131231,
       transactionHash:
        '0xe04e5075f79dae968ab1cf81a5d980a4fcf8ce65f30993d13d47dc1034ba3ab1',
       transactionIndex: 0,
       blockHash:
        '0x7529312a210e9a3189e1a8781e6c943cab18a74432ff079b70cd8ced1f362f13',
       logIndex: 0,
       removed: false,
       id: 'log_5173e887' } ],
  logsBloom:
   '0x00000000040000000000000000000000000000000000000010000000000000000000000000000000000001000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000001000000000000008000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0xe04e5075f79dae968ab1cf81a5d980a4fcf8ce65f30993d13d47dc1034ba3ab1',
  transactionIndex: 0 }
alastriaProxyAddress: 0x20668a6a410edb611a0d394866462508e5d5e60a
the alastria DID is: did:ala:quor:redT:20668a6a410edb611a0d394866462508e5d5e60a

2.createEntity3AlastriaID

Output

------ Example of creating an Alastria ID for a Entity3 with Entity1. ------


 ------ A promise all where prepareAlastriaID and createAlsatriaID transactions are signed and sent ------

	signedAT:
 eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpYXQiOjE1ODk5MTM1MjV9.Ip2ohmw-zNW8ahABRCdQDvhvu1oEHLVt2lJ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kODJhNzE0NmY1MGEyZDFiYmM5YTY5OWE4NDJkMTZmNzY3OWNlNTZkZmRlMmZkN2VjZWVlM2MyYTA1ZTViZmE1Y2Q4Yjg5ODFlYWIxMDAyYmJmZjk2MjlmMDIzNGU5N2QyZGEwOTJmN2M1YmEwOThhNmRiYjVmNDc0IiwiYWxhc3RyaWFUb2tlbiI6ImV5SjBlWEFpT2lKS1YxUWlMQ0poYkdjaU9pSkZVekkxTmtzaWZRLkltVjVTakJsV0VGcFQybEtTMVl4VVdsTVEwcG9Za2RqYVU5cFNrWlZla2t4VG10emFXWlJMbVY1U25CWldGRnBUMnBGTVU5RWF6Vk5WRTB4VFdwV09TNUpjREp2YUcxM0xYcE9WemhoYUVGQ1VrTmtVVVIyYUhaMU1XOUZTRXhXZERKc1NqRkVkR05aUWxCT00wUnZVMGROYUc1WU9FMWpObFJhYTJ0d05XWkdlVTg0ZDFvMVNFMUJObG80Tm00MlQybDZWSFY0ZHlJLmxsRjNDSFNtZjV6emljUzBaWHJpQ3V4VEFIaDRyd1JFd01xNU5URzZWOFNIM1hUM0hBMTJXTkJjTE40Tm5xRk04emFYZUl0OFhQc1NCVFlKclQ0TmpBIiwicHVibGljS2V5IjoiZjZhYTUyOTI0YTcyODAyNDFiZDg0ZDA5OGQ3YzAzYjRlM2E3ZTA4ZjIwNmI2ODg2OGY0MzliNjVhNmMzYjI2YjFiZDMwYjk2MDMyNWJlODY3MDMzOWE2NjI1OGI4NTFhZTE3MDY5MTQyOTI0ODE0OWI2MDFkYTU3OThmNDJkMjgifQ.l8rSrLSAWRsPRk8gl5VHXIJJ7vv9Ub5Q1Z40GjKgDNk7431dQDFQB6N8o8drKP0skTJYvd5ihk0iJ6l0RgUj5Q
---->signedCreateTransaction<---- 0xf901888201c880830927c094bd4a2c84edb97be5beff7cd341bd63567e73f8c980b901246d69d99a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c450382c1a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000806636616135323932346137323830323431626438346430393864376330336234653361376530386632303662363838363866343339623635613663336232366231626433306239363033323562653836373033333961363632353862383531616531373036393134323932343831343962363031646135373938663432643238000000000000000000000000000000000000000000000000000000001ca024fbab4add82a7146f50a2d1bbc9a699a842d16f7679ce56dfde2fd7eceee3c2a05e5bfa5cd8b8981eab1002bbff9629f0234e97d2da092f7c5ba098a6dbb5f474
HASH:  0xdacbef794b1ab5247841ab745e30a64264ec8729543487e016893e109c40cc16
RECEIPT:  { blockHash:
   '0xea291ca18de5e70f7f26c58a5e4dc07b6bf25fe8418c519888e1994eb81386e4',
  blockNumber: 40131276,
  contractAddress: null,
  cumulativeGasUsed: 45099,
  from: '0xa9728125c573924b2b1ad6a8a8cd9bf6858ced49',
  gasUsed: 45099,
  logs:
   [ { address: '0xBd4a2C84EDB97bE5BEfF7CD341bd63567e73f8C9',
       topics: [Array],
       data: '0x',
       blockNumber: 40131276,
       transactionHash:
        '0xdacbef794b1ab5247841ab745e30a64264ec8729543487e016893e109c40cc16',
       transactionIndex: 0,
       blockHash:
        '0xea291ca18de5e70f7f26c58a5e4dc07b6bf25fe8418c519888e1994eb81386e4',
       logIndex: 0,
       removed: false,
       id: 'log_47609725' } ],
  logsBloom:
   '0x00000080000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000008000000000080000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000010000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0xdacbef794b1ab5247841ab745e30a64264ec8729543487e016893e109c40cc16',
  transactionIndex: 0 }
HASH:  0x6c167e5572edbd5e2d7135adb4516d9bbff86a21d31fd4b91b431fb6d40d893c
RECEIPT:  { blockHash:
   '0xb1a6642950a18cbb1d2d50ac22d0d44d39e0fef9ef2ff845358b0e177eea21c4',
  blockNumber: 40131279,
  contractAddress: null,
  cumulativeGasUsed: 454654,
  from: '0xde7ab34219563ac50ccc7b51d23b9a61d22a383e',
  gasUsed: 454654,
  logs:
   [ { address: '0x3342664027077aEA360fa3FC762a17BacbD45698',
       topics: [Array],
       data:
        '0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c450382c1a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080663661613532393234613732383032343162643834643039386437633033623465336137653038663230366236383836386634333962363561366333623236623162643330623936303332356265383637303333396136363235386238353161653137303639313432393234383134396236303164613537393866343264323800000000000000000000000000000000000000000000000000000000',
       blockNumber: 40131279,
       transactionHash:
        '0x6c167e5572edbd5e2d7135adb4516d9bbff86a21d31fd4b91b431fb6d40d893c',
       transactionIndex: 0,
       blockHash:
        '0xb1a6642950a18cbb1d2d50ac22d0d44d39e0fef9ef2ff845358b0e177eea21c4',
       logIndex: 0,
       removed: false,
       id: 'log_bad13449' } ],
  logsBloom:
   '0x00000000040000000000000000000000000000000000000010000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000100000400000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0x6c167e5572edbd5e2d7135adb4516d9bbff86a21d31fd4b91b431fb6d40d893c',
  transactionIndex: 0 }
alastriaProxyAddress: 0x3342664027077aea360fa3fc762a17bacbd45698
the alastria DID is: did:ala:quor:redT:3342664027077aea360fa3fc762a17bacbd45698

3.createSubject1AlastriaID

Output

------ Example of creating an Alastria ID for a Subject with Entity1 ------


 ------  A promise all where prepareAlastriaID and createAlsatriaID transactions are signed and sent ------

	signed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  { blockHash:
   '0xfac950280c5dfb1c25c71b6bfe2948f9048239cb06a4459889fdc334d046e720',
  blockNumber: 40131324,
  contractAddress: null,
  cumulativeGasUsed: 45099,
  from: '0xa9728125c573924b2b1ad6a8a8cd9bf6858ced49',
  gasUsed: 45099,
  logs:
   [ { address: '0xBd4a2C84EDB97bE5BEfF7CD341bd63567e73f8C9',
       topics: [Array],
       data: '0x',
       blockNumber: 40131324,
       transactionHash:
        '0xae7c2587b030bd5be830842c19c44501f3cdd5e8a148bace34774f04063eea2f',
       transactionIndex: 0,
       blockHash:
        '0xfac950280c5dfb1c25c71b6bfe2948f9048239cb06a4459889fdc334d046e720',
       logIndex: 0,
       removed: false,
       id: 'log_2c2307fc' } ],
  logsBloom:
   '0x00000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000010000000000000000000000000000010000000004400010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0xae7c2587b030bd5be830842c19c44501f3cdd5e8a148bace34774f04063eea2f',
  transactionIndex: 0 }
HASH:  0xcfe4e867f3e4078f958cdc5e3a2ed4ce29db4db30cb1423c983fdd9262e35180
RECEIPT:  { blockHash:
   '0xd9c59e5ca34330707070ffdf3df70f1cf4287c452675239bf3cd1b387703637e',
  blockNumber: 40131326,
  contractAddress: null,
  cumulativeGasUsed: 454654,
  from: '0x806bc0d7a47b890383a831634bcb92dd4030b092',
  gasUsed: 454654,
  logs:
   [ { address: '0x9d68DB2F1E7Bf4c65DBD31F6CC9F2adeb86D584d',
       topics: [Array],
       data:
        '0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c450382c1a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080326535303761663031313637633938613661636363306364343661623261323536646436623663363965633163306332386638306662363265316637643730323333373638623063353864626264616331666333353862383134316330373561353230343833636639373739653465613938643133646632383333663337363700000000000000000000000000000000000000000000000000000000',
       blockNumber: 40131326,
       transactionHash:
        '0xcfe4e867f3e4078f958cdc5e3a2ed4ce29db4db30cb1423c983fdd9262e35180',
       transactionIndex: 0,
       blockHash:
        '0xd9c59e5ca34330707070ffdf3df70f1cf4287c452675239bf3cd1b387703637e',
       logIndex: 0,
       removed: false,
       id: 'log_fb8f33eb' } ],
  logsBloom:
   '0x00000000040000000000000000000000000000000000000010000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000080000000010000000000000000002000000000000000000000000000000000000000000000000000000000000000000001000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0xcfe4e867f3e4078f958cdc5e3a2ed4ce29db4db30cb1423c983fdd9262e35180',
  transactionIndex: 0 }
alastriaProxyAddress: 0x9d68db2f1e7bf4c65dbd31f6cc9f2adeb86d584d
the alastria DID is: did:ala:quor:redT:9d68db2f1e7bf4c65dbd31f6cc9f2adeb86d584d

4.createSubject2AlastriaID

Output

------ Example of prepare Alastria ID, addKey and createAlastrisID necessary to have an Alastria ID ------


 ------ A promise all where prepareAlastriaID and createAlsatriaID transactions are signed and sent ------

	signedAT:
 eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJpYXQiOjE1ODk5MTM2NzR9.NiHvh6wGzFMydxvJjoQzQbHR_22_Zh4Nk70iHkfgMDR6LKdbUOV8E-nmw7_N84WaoKpKOk1wi1ik_X6wX2B3Wg
	signedAIC:
 eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NksifQ.eyJjcmVhdGVBbGFzdHJpYVRYIj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NlYmY3ZGJkMWU0MjA3YjQyZTIyMDM3MjhiYmE3OGIiLCJhbGFzdHJpYVRva2VuIjoiZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKRlV6STFOa3NpZlEuSW1WNVNqQmxXRUZwVDJsS1MxWXhVV2xNUTBwb1lrZGphVTlwU2taVmVra3hUbXR6YVdaUkxtVjVTbkJaV0ZGcFQycEZNVTlFYXpWTlZFMHlUbnBTT1M1T2FVaDJhRFozUjNwR1RYbGtlSFpLYW05UmVsRmlTRkpmTWpKZldtZzBUbXMzTUdsSWEyWm5UVVJTTmt4TFpHSlZUMVk0UlMxdWJYYzNYMDQ0TkZkaGIwdHdTMDlyTVhkcE1XbHJYMWcyZDFneVFqTlhaeUkuRFQ1VF80SlNvNWhGSjR5dlktQTFsRkhwcV9PQU5PZmwxTkVYNVR6eXB5ZWxEY2l0MnhUUlU0TGRRR0l0SFlwZWx6Y3IwdE1ua1dWeVJXWlRkcVdOU1EiLCJwdWJsaWNLZXkiOiIweGFjYTdhYTQyZTgzMWY0MWI2ZjI0NmQwODlmYmNhYmU3M2UxYzZjZTAxYTFiYjVkOTQ0ZmRhNGUxNDhlMWQ2OTMwZjZlYmI1MTM4YjFkMTAzZTNlMzg0Yzg5Mzk2MmEyMzhlNDA4OGE1NDliZmU4NDg2N2RhOTY5NDI5MzFmNjlhIn0.ENCxtdCBONNrBFC8JyCQKimRGG8Rt15vgRtZGTmjnGnoZ7e5voNd2WDdOhTuElh7jYsvLEB6sJaVvzClLyIhFg
HASH:  0x5e863554bce1351cddc56ada4726606e943011202d97e066cd58ad7e16cd81cd
RECEIPT:  { blockHash:
   '0xf55166794b6c8cf30daa39a2731628434fb5c9ed205e8d419a29780b1a2f8e49',
  blockNumber: 40131342,
  contractAddress: null,
  cumulativeGasUsed: 45099,
  from: '0xa9728125c573924b2b1ad6a8a8cd9bf6858ced49',
  gasUsed: 45099,
  logs:
   [ { address: '0xBd4a2C84EDB97bE5BEfF7CD341bd63567e73f8C9',
       topics: [Array],
       data: '0x',
       blockNumber: 40131342,
       transactionHash:
        '0x5e863554bce1351cddc56ada4726606e943011202d97e066cd58ad7e16cd81cd',
       transactionIndex: 0,
       blockHash:
        '0xf55166794b6c8cf30daa39a2731628434fb5c9ed205e8d419a29780b1a2f8e49',
       logIndex: 0,
       removed: false,
       id: 'log_e2974dcd' } ],
  logsBloom:
   '0x00000000000000000000000000000000000400000000040000400000000000000400000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000010000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0x5e863554bce1351cddc56ada4726606e943011202d97e066cd58ad7e16cd81cd',
  transactionIndex: 0 }
HASH:  0x6470fd772c801be345a55c83fdeb2ab2bf98563b87808e85615112653ffde124
RECEIPT:  { blockHash:
   '0xaeeb6c1967847ada32dee8ddde6cc8ae6e02a49b762f2a669b824750ea794b05',
  blockNumber: 40131345,
  contractAddress: null,
  cumulativeGasUsed: 454654,
  from: '0x643266eb3105f4bf8b4f4fec50886e453f0da9ad',
  gasUsed: 454654,
  logs:
   [ { address: '0xb374f5781c99817C9a59Ff29740663C37F275b9f',
       topics: [Array],
       data:
        '0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c450382c1a00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000080616361376161343265383331663431623666323436643038396662636162653733653163366365303161316262356439343466646134653134386531643639333066366562623531333862316431303365336533383463383933393632613233386534303838613534396266653834383637646139363934323933316636396100000000000000000000000000000000000000000000000000000000',
       blockNumber: 40131345,
       transactionHash:
        '0x6470fd772c801be345a55c83fdeb2ab2bf98563b87808e85615112653ffde124',
       transactionIndex: 0,
       blockHash:
        '0xaeeb6c1967847ada32dee8ddde6cc8ae6e02a49b762f2a669b824750ea794b05',
       logIndex: 0,
       removed: false,
       id: 'log_c0713198' } ],
  logsBloom:
   '0x00000000040000000000000000000000000000000000000010000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000080000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000001000000000000008000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000',
  status: true,
  to: '0xbd4a2c84edb97be5beff7cd341bd63567e73f8c9',
  transactionHash:
   '0x6470fd772c801be345a55c83fdeb2ab2bf98563b87808e85615112653ffde124',
  transactionIndex: 0 }
alastriaProxyAddress: 0xb374f5781c99817c9a59ff29740663c37f275b9f
the alastria DID is: did:ala:quor:redT:b374f5781c99817c9a59ff29740663c37f275b9f
Clone this wiki locally