Event hash instead of identity id and name
For this account for instance:
query {
accountById(id: "5CJKhFCpdSpumgWjSZ3TQmejJuHV6iELJrtdrfs38SXuiQeB") {
id
identity {
name
id
index
certReceived {
issuer {
name
}
}
}
}
}
Result is:
{
"data": {
"accountById": {
"id": "5CJKhFCpdSpumgWjSZ3TQmejJuHV6iELJrtdrfs38SXuiQeB",
"identity": {
"name": "0000154458-97899-000002",
"id": "0000154458-97899-000002",
"index": 14156,
"certReceived": [
{
"issuer": {
"name": "poka"
}
}
]
}
}
}
}
Identity id and name are replaced by an event hash.
In blockchain, identityIndexOf is null for this identity.
The event hash correspond to this event:
{
"data": {
"eventById": {
"id": "0000154458-97899-000002",
"pallet": "Identity",
"name": "IdtyCreated",
"args": {
"ownerKey": "0x0a62d484aa3856027cb965dec057d6da9cd8f857505c5cf225722302f9c2e156",
"idtyIndex": 14156
}
}
}
}
So it's seems to be the last action made on this identity, before creation period time expiration.
This the line which did this: https://git.duniter.org/nodes/duniter-squid/-/blob/main/src/main.ts?ref_type=heads#L578
Maybe it's a feature, but we should be able to see the status of each identities on squid. I didn't found how to do that yet. This is required on client side to be able to show the correct information instead of identity name.
In fact not realy, for instance in gecko I get idtyStatus from blockchain and idty name from indexer, so I can manage if idtyStatus is Created, display this information instead of name. If no idty, display nothing. But it should still be more explicit on squid side.
Normal behavior should be set the identity to null value on expiration/removed.