mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-utils.git
synced 2026-11-06 09:11:06 +00:00
light-client/zagros.json and light-client/people-zagros.json are what the wallet's embedded light client starts from. The full specifications carry the raw genesis storage, about 3 MB each. These carry only the genesis state root, which identifies the chain: - The relay specification adds a checkpoint (lightSyncState) exported by the relay node through sync_state_genSyncSpec. It is 7.3 KB. - People has no checkpoint, because the relay chain's finality covers it. It is 732 bytes. Boot nodes put the /wss addresses on 443 first and keep the plain TCP ones. scripts/light_client_specs.py writes both files. It checks every state root by rebuilding the genesis header and comparing its hash with the chain's genesis hash. A root with one byte changed is refused. The checkpoint is a trust anchor: a client that starts from a false one can follow a false chain. It reaches the wallet inside the APK or through signed/targets.json, never from peers. Targets are re-signed (version 3, 689 files). The secret scan lets through the four public chain-data keys these files carry: stateRootHash, finalizedBlockHeader, babeEpochChanges and grandpaAuthoritySet.
24 lines
732 B
JSON
24 lines
732 B
JSON
{
|
|
"bootNodes": [
|
|
"/dns/zagros-people-bootnode.pezkuwichain.io/tcp/443/wss/p2p/12D3KooWLnDS5p5bvMzfco2BR4arKRbtpqoZwRvLKgCdzgVpuEQG",
|
|
"/ip4/217.77.6.126/tcp/30535/p2p/12D3KooWLnDS5p5bvMzfco2BR4arKRbtpqoZwRvLKgCdzgVpuEQG",
|
|
"/ip4/164.68.110.49/tcp/30535/p2p/12D3KooW9rHfLv4za95C4fPGTUzNk531zRrjaXYJY3pijMEYd3xB"
|
|
],
|
|
"chainType": "Live",
|
|
"codeSubstitutes": {},
|
|
"genesis": {
|
|
"stateRootHash": "0xcaffff9ce4cf02e84a963a8b2ff27834f4d2385a1dc3b01a23551da8515d6c98"
|
|
},
|
|
"id": "people-zagros",
|
|
"name": "Zagros People",
|
|
"para_id": 1004,
|
|
"properties": {
|
|
"ss58Format": 42,
|
|
"tokenDecimals": 12,
|
|
"tokenSymbol": "HEZ"
|
|
},
|
|
"protocolId": null,
|
|
"relay_chain": "zagros",
|
|
"telemetryEndpoints": null
|
|
}
|