AVERAGE_GARY on Nostr: TIL How ASIC boost works. You have X amount of data to hash from a block. Because ...
TIL How ASIC boost works.
You have X amount of data to hash from a block. Because SHA256 takes chunks (64byte) at a time, you can feed it all the 'constant' chunks first then 'save' the 'midstate' before introducing the chunks that need to change.
This saves ~20%. Idk why it's that % but I intend to find out.
Published at
2024-08-21 12:47:13Event JSON
{
"id": "6e93ff6bb2050fc7ffab54a195888f0203bf91e9ed1c86a2770152b479d76780",
"pubkey": "d3d74124ddfb5bdc61b8f18d17c3335bbb4f8c71182a35ee27314a49a4eb7b1d",
"created_at": 1724244433,
"kind": 1,
"tags": [],
"content": "TIL How ASIC boost works.\n\nYou have X amount of data to hash from a block. Because SHA256 takes chunks (64byte) at a time, you can feed it all the 'constant' chunks first then 'save' the 'midstate' before introducing the chunks that need to change.\n\nThis saves ~20%. Idk why it's that % but I intend to find out. ",
"sig": "3c366ad6b9cd215b7992a6f8d9d2797e91a925e04f8d5bda2f0738098a92f0c11c76db899a1084e81e9e395d29199427f2b98354cb64ba9814275a3f5badb35f"
}