alastria-identity-example-simplified
v0.0.4
Published
A simplified version of alastria-identity-examples and with generators
Downloads
10
Readme
Alastria simplified examples
A simplified version of alastria-identity-examples and with generators
Create subject
Running ./src/index.ts
, you will get:
{
step: 1,
type: 'ConnectedToNetwork',
message: 'Entity connected to network http://34.91.211.67:22000',
source: 'entity'
}
{
step: 2,
type: 'KeystoreOpened',
address: 'a9728125c573924b2b1ad6a8a8cd9bf6858ced49',
message: 'Entity keystore opened and generated identity',
password: 'Passw0rd',
source: 'actor',
key_pair: {
private_key: '0d50e021f2a91af45e10ae26b77340f876e7ad06d17c00aa0ba899760b5ebded',
public_key: '356e3fce435d8729062e52d263c0c705b3c5e201a9a9608cdb070764e6b8df30ae8423b439a7af2bcc3529778341ab06c1e44411352f217b68ce44a673a1df63'
}
}
{
step: 3,
type: 'KeystoreOpened',
address: '806bc0d7a47b890383a831634bcb92dd4030b092',
message: 'New Actor keystore opened and generated identity',
password: 'Passw0rd',
source: 'actor',
key_pair: {
private_key: 'c0d2beff3dd3ab1defda03af9dedd8524b43c4e1a73af3bd55f08a657135e411',
public_key: '2e507af01167c98a6accc0cd46ab2a256dd6b6c69ec1c0c28f80fb62e1f7d70233768b0c58dbbdac1fc358b8141c075a520483cf9779e4ea98d13df2833f3767'
}
}
{
step: 4,
message: 'Created and signed create Alastria ID transaction by entity',
type: 'CreateAlastriaIdTx',
tx: '0xf901888206db80830927c094eafcaf8c3f9016b14ec65105677658f3d6eb907980b901246d69d99a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c450382c1a000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000803265353037616630313136376339386136616363633063643436616232613235366464366236633639656331633063323866383066623632653166376437303233333736386230633538646262646163316663333538623831343163303735613532303438336366393737396534656139386431336466323833336633373637000000000000000000000000000000000000000000000000000000001ca009db1a98a6ce17b1a376bca60d52a5bc92ed2125b450bf76bcb892ced1a3691da0201eca48bf0a20fd3c0964b0cb41c66175467bffa7e409d7482ab44014b6a8de',
source: 'entity'
}
{
step: 5,
message: 'Created and signed prepare Alastria ID transaction by entity',
type: 'PrepareAlastriaIdTx',
tx: '0xf901278212b080830927c094eafcaf8c3f9016b14ec65105677658f3d6eb907980b8c4597b2e9b000000000000000000000000eafcaf8c3f9016b14ec65105677658f3d6eb907900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002445748b42000000000000000000000000806bc0d7a47b890383a831634bcb92dd4030b092000000000000000000000000000000000000000000000000000000001ca09b663ae4332416cedd800eb0e7961e1750e7e2b62e51fc96bc531372f63b6fd0a06ad4d20f36cf22520a7b83964080949e03abf16460100ff6df14a7eb6b0494cc',
source: 'entity'
}
{
step: 6,
message: 'Receipt of prepare Alastria ID transaction by entity',
type: 'ReceiptPrepareAlastriaIdTx',
receipt: {
blockHash: '0x6d5d03de4447d18de5b5c2d8fcde7987318d2599b0a1cabb51275417d1bd24d5',
blockNumber: 81584530,
contractAddress: null,
cumulativeGasUsed: 60504,
from: '0xa9728125c573924b2b1ad6a8a8cd9bf6858ced49',
gasUsed: 60504,
logs: [ [Object], [Object] ],
logsBloom: '0x00000000000000000000000040001020000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000001000000000000000000000000000000000000000000000010000001000000000000000000000000000000000000080000000000000000000000000000000000000000000040000000000000000000040000000002000000000000000000000000000010000200000000000000800000000000000000004000010000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000',
status: true,
to: '0xeafcaf8c3f9016b14ec65105677658f3d6eb9079',
transactionHash: '0xf414a58c600f39f3d59bf74884f9d3ccb23a2c837fef1a048807ecaf448a8b25',
transactionIndex: 0
},
source: 'entity'
}
{
step: 7,
message: 'Receipt of create Alastria ID transaction',
type: 'ReceiptCreateAlastriaIdTx',
receipt: {
blockHash: '0x0b9546f3cdd2f95a977d8508fac23455b272010449d75837cf45b368015deea8',
blockNumber: 81584532,
contractAddress: null,
cumulativeGasUsed: 510261,
from: '0x806bc0d7a47b890383a831634bcb92dd4030b092',
gasUsed: 510261,
logs: [ [Object] ],
logsBloom: '0x00000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000800000000000202000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000802000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000',
status: true,
to: '0xeafcaf8c3f9016b14ec65105677658f3d6eb9079',
transactionHash: '0x848915f0209741eb80daf7ec5e288aabb088939cdc36bdb52ff4d7d29f932774',
transactionIndex: 0
},
source: 'entity'
}
{
step: 8,
message: 'Obtained the proxy address of the new actor in the network: 217319c5a54c5918729eea2589e8fddc82e29a3b',
type: 'GetIdentityKeys',
address: '0x806bc0d7a47b890383a831634bcb92dd4030b092',
alastria_identity: '217319c5a54c5918729eea2589e8fddc82e29a3b',
did: 'did:ala:quor:redT:217319c5a54c5918729eea2589e8fddc82e29a3b',
source: 'any'
}