I have never seen a PoW minable coin where the block hashes aren't actually the proof of work (a bunch of zeros in front of the hash)
Why is bata designed this way? Just a general curiosity
Hi here is an example of a raw block:
{
"hash": "2959d2161759004644c9bda9ac37507a29b67b7bb3580ba1bcc610c3fa8b11d9",
"confirmations": 1,
"size": 241,
"height": 779555,
"version": 4,
"merkleroot": "954945425eb40dbb2fc3d2d6ddc87d92ba268dc341d0fe03e71e76246e8599a1",
"tx": [
"954945425eb40dbb2fc3d2d6ddc87d92ba268dc341d0fe03e71e76246e8599a1"
],
"time": 1506434691,
"nonce": 2002999098,
"bits": "1c02b746",
"difficulty": 94.25787966,
"chainwork": "00000000000000000000000000000000000000000000000000c0c4830ef0bc35",
"previousblockhash": "48e9cfa2a689877d4985f63df903a6027c1c14c35ed02107473d72fc351b607c"
}
If you are referring to chain work then an explanation is available here:
https://bitcoin.stackexchange.com/questions/26869/what-is-chainwork"The chainwork value is really just the total amount of work in the chain."
I know about chain work, its the cumulative work on the chain. I was wondering about the block hash, which tells the work on the individual block. Why is it hashed this way in bata.
Example a peercoin pow block:
{
"hash": "0000000000000000ee2f9eeca90dd0708459b7e78de9c64d19bc3e73fd2d8e8a",
"size": 3790,
"height": 324835,
"version": 1,
"merkleroot": "e97bfe5e6c6d4fbf4acb8956ae0228dd6f2047b690b8245e128683ce8688dcb7",
"time": "2017-09-26 11:24:01 UTC",
"nonce": 2768994299,
"bits": "1902e43a",
"difficulty": 1485349089.4013,
"mint": 50.94,
"previousblockhash": "4235e040578bae46616f11daa644fd1cb485db7c6a5948f5e40608785aa4a6b8",
"nextblockhash": "00000000000000011b4841bb4aead702f2e266ba645b7484c3a239bf67101f3d",
"flags": "proof-of-work",
"proofhash": "0000000000000000ee2f9eeca90dd0708459b7e78de9c64d19bc3e73fd2d8e8a",
"entropybit": 0,
"modifier": "213b2338aec7bc5a",
"modifierchecksum": "4ba28af2",
}
The proofhash is the same as the block hash.
Again I am just curious, if there is a special reason for this design decision
I fail to see any zeros in front of Bata hash.
Peercoin is sha-256.
Here is an example of Litecoin instead:
{ "hash": "dc30022aba0c5651f6d9d4fb027b64e32e9093e85c4a83411bef335d55cd5f00", "confirmations": 209, "strippedsize": 35918, "size": 35954, "weight": 143708, "height": 1284426, "version": 536870912, "versionHex": "20000000", "merkleroot": "69b966aeefb7523334ae1d1d788bff7b609d14ba3bcbb88b8eaacc1ae52026ea", "tx": [ "25cf0e9ad300c8eb14becee1adf30cee24a297b98b8b516ce29dd2d33eb04f51", "cad820793515b45db0331b97f6a3c3db6158e11bf141629310844d99540b659c", "abeae4edeca736877ce0edbebbf994ba2f914839af02541c9b86735c21787dd7", "fa346dd39c86705c7ede6895154f3aa108e5ee640934229f270c89591538da6e", "c965006e9f204cd070ab4ab5bcdfbf9abaf0ddf22f8bf5c3fbbd3c2d7f7dd76a", "c3ef81a89ec3fd1b1fd23cf26488525c5592c3fd37eb07ed3b133247ce535919", "fbf33e1d65ea2829112dc6f7d0141722ab8ccbf7a94ab8d7d5b85f2aaadf7254", "836503825bbfdd55bbc0b4b5d19dd60a401c41f0ce317a869d51deee6db3cc04", "b4f799a16a61c793046196e9c2bbff77223852b8b3cc719c0fb93cea85932616", "ff305b97cecfb6f8177c160506a0de978cafc2588a3c44b6ca6ee559b9cbbc02", "a11d7b73006be146472ccdfc7622cd14d7618e6b646793cdf4cf24f09ddbcc2a", "79fe0e3d8de53d8f0c8beaef2de189d2b74a59f9e78038565fc982bfc46cecae", "a4eaf465fd42063544b90e657b38ba86776884e206423781ecfbaea18c2e072a", "c78eddb13888ea191394fbb05bb0c1eb5e3476c27f3491cf2dcf0dadfbefca34", "28335274b46ce6366d0df32279fdf729bc3c284b211966f91c85089b536a62f6", "22fa0fa690fcbc66ce49441ef46b054f95aa69c376349fd0a1935fccf0cc752d", "009f9c4655b12c621b433d54148da409b7b28a81de8f33d21fbd3f9cc30be04c", "3b1f766eda3d32d190ec3f42961d34c7c0ad58a12581e96ce4ea223d09a4f56d", "069f0c61d6caa2f1157ace6acd6448824b56aa083dc2b8b7a7e66a7f1b403477", "c7a4a1017cac0f1554feb056f3591340ec870c6afcda166a8fceec804484d8fd", "0a383a26b2bfab8832d3f1864606951f0052d2b05dca68d05f48548012604360", "8a8485056133b279601a864aeebbbcc4f18f2042d6921333775cb1cc295d1c9b", "91a44024a377fdae5f2eaf36d3e7957561be6aa73da4a60fab7f4e105cc836a7", "f5a95bc526d2198d068af492a808312aa65f7a0fccaaef6fc00b06bc0e1a0216", "1e4bd1c63c02f1a55da3d53dba8bf4d635d7fa4761ccc36aa952869a84c56fe1", "2974be783229bf27d7ee3b6fdc7dae3cd5ac86829a6de82c6ed67beadea052fe", "11efa4e26ea1da9d1402c002cf60c0b50ce47ea6dc0d5a2afb46514419c80e1f", "0c3ac86a8e6c511188c9de06d335a378a6c23c6adae725b078e69f483dafa0b0", "4bc6f151f9aa2e460f9c9900704019a336c920f1bb5b9d8157098b0e9b90e0f7", "26be53d4816c84cad4797f13b9132b494bd23598bc4d5734a7f8eb2ecfe2156b", "b0814232f8e513bd9189a215ec1e4a0fdecf50fc6c379011ae743d21e9c5b4ef", "fa26bd143a2ebe44c81aecd9a5add868ebc0630c2836472058b3f17798c7154f", "a419661b25c86c83c3426a2699174688c0df2cb07a4fd8cd7bc9615c5aafb456", "60834403e5ef57bb101f3528cebf4091f795ab3425231095fa7d8f217987c80e", "bfd21bbe7c21a05279993b7c767b75710839eb7b1f25cd06396116c6ef77a543", "15ce71b1db62a3c36f087f3bb2a2bc5adf1737b575c4f28b6f8adff926222e65", "18d17fd65007b1d16665035edb72446c2285fcd999a38ec33be013f0414d5485", "b33e0e6acd9b735c5c1052b144508ae684033f5c22a4b7e9b0156f95a8a9b98f", "27c7b82b3668b23a5a855f80908e3178c99d9cb334381a824ff79438b426d990", "87b3f79516698f66d586bb403d7b3a69b58947c29be2afba40873b20807137cc", "12fcfb203b8d3a31e8dfa44442e35baeafad20d5586a946c4b7554f4a9c1c0e2", "e421e348bf712cf2c6710a0f1d82204e55ae3e0d8dcbc943c6862e1fe9f18c14", "a1f359889ebd207e5bca56ae81b4cd0a3fb698c092dfe73a8ef267475fc18350", "577c99be1262b9456c6f78071a4ce916f6f4b8f7c507bb81e49f7f13d36655f7", "80b1fd26ac39b8be4c3464ff9e32ee033391d2692b7165d2d3aa7e4bf3b2da68", "d29085c72cf84cc6753fa17209cec52032eb30425ad485545c99ec2278b345d2", "70854a742cb6ef7fe3f1b7a98eea51a550d11289e690c574992bd641611fd973", "990f13b9c969df01f1ad403f0f20282a8780798dee85e1f8545ed4013221ba92", "eed90470d55b22a5da2d5e4a12a58b080f79019462b78f0adc656132e1973334", "b30ae5a2640776db25126cc8293737ebb32e730ee6b8486323cbb268bfb9cce6", "3f53e914a00c8ad8dfb2ce1409323c1f2d99729fb959f31410b237476192be7b", "87fb2df173abf9629739fa99419a07d16e53d990484a7c819613033eb7fe6917", "319a07c2140476cd45fba6b862021dca9c02cd1d4da1afc66daa090d22568759", "06ded4b5729091c71ba7567ae70032156fb1f6ba1b960c110efa8838b4e5165e", "5c05b537f4b47d1929de958f50581e0e81d4b5091d57628de5030039eafb6067", "6f45d8da5be520d0da681b4b58082afa37ba1501534a624e50b8a38d3b6c1e6b", "543d9315073909b656862f60068c3b7767654c086bcc7f054baca4ad19c50d70", "583be4af63c552cd57f59818bc957569e8b77a4c5380e87a20ed94a863331874", "7e671e3daf2cee57638463c3ae21002f92483d6353229cf59987269f2da3c14e", "7e69c3376827f865047b23d1626d8a5f5f4fcfcc926217569b9d40222643b9a7", "f5acdf1edf8a913b7f27c912ea22554d787f8676e265d8eab4d6d53453607878", "a52b6b755df320de762f3a92a1d7a40e7321dd9fb987fc2f866f4f25e77061bd", "094b1785ff0659108b873668099009b5d1699c8c1368ff7ea12fd0ccbf6699f0", "4b0b773c19bab455e3e17622cb49d4c6b25fd0c372bce7c157890ebf4828e5f7", "8b4e845fd052059c3ef03a15d4dfeca09ab7390065d898c547f606b35200bf92", "e5b29f7eb1e8d4bfc2db7bd7f8ccd62ff42845c19c6f52797ab7b74b61b160da", "619476de9a13035d8b5146e5ad1a72c8ccb0f672775b987c7f84d5acea5c9701", "7450d7d0b067b9bf1632645b572b294c2cfe5ac0e5391cf4ecd27d10b8e87d0c", "6d5ff748c1018158bd02b18862e64e3a454f07ac85791cbd9e5acc4635b7d015", "e5c93112f3ec4d46218aa61a1fff083e31dc561a60379b065efa50ff9688f43c", "5c135e3fd6d4c9624e71d33c75eeec0b5ea394d0d97c808f2782e46a2c37d47b", "8cd0959f972ca64a7262685e70faea6e5a43dc47d7f54b4299c29d48cf03ed81", "bf3886b8255b405a54fb502e5f8c894a99b93d5351901cdb64351b1d393e6982", "b108d108e7edfb76a613f9105aeb70ec20c253cbb188426805fd6b9815f515a8", "185283931eca3d2df178c4d6cfd169206e3a214c5d28104b2fd63e4789c1e7a9", "57f9457ebc0cc99c7ed9e2d63caf0df3af0031148c228c936bd04c0d0f858bbb" ], "time": 1506443100, "mediantime": 1506442457, "nonce": 118586915, "bits": "1a12d171", "difficulty": 891531.70694052, "chainwork": "00000000000000000000000000000000000000000000000f66ce350b98448995", "previousblockhash": "86e4ac4b5080e85fcb63b74cceb40e815375829cba6612cb13dd131166d05177", "nextblockhash": "ac20c024baf00123477c8556cb53538b28ff32137191cb71775199be0588b480" }