Jean-Paul Kogelman [ARCHIVE] on Nostr: 📅 Original date posted:2013-07-22 📝 Original message:Hi Mike, I had a similar ...
📅 Original date posted:2013-07-22
📝 Original message:Hi Mike,
I had a similar request on the forums. I suggested adding either a 2 byte 'weeks since genesis' or 'months since genesis', but starting from spec birth works too. Would either of those work for you?
jp
On Jul 22, 2013, at 6:14 AM, Mike Hearn <mike at plan99.net> wrote:
> This isn't usable for SPV wallets unless it has a birthday in it. Otherwise you either need to scan the entire chain (slow) or find a fully indexed copy of the block chain (expensive, more centralised). Just add a UNIX time as an extra 4 bytes, or if you want to save a few characters then use a uint16 that represents "days since birth of this specification".
Published at
2023-06-07 15:04:53Event JSON
{
"id": "3166e18609a31603678c2361b5e10b9e8f0aa5fb2a2319fedf23ffa88faca452",
"pubkey": "874fa44d110b2119208ba6fb27607799f16a00c82143201ad7f179a89f0df349",
"created_at": 1686150293,
"kind": 1,
"tags": [
[
"e",
"5af66f0d59d3831f663559ccb7340c6caffb6a4820648e2319deaf69af478957",
"",
"root"
],
[
"e",
"5c25d01a04e7c1c59f99234b11d86cb12e549199e3362b5eaf7ca142e353e74f",
"",
"reply"
],
[
"p",
"f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2"
]
],
"content": "📅 Original date posted:2013-07-22\n📝 Original message:Hi Mike,\n\nI had a similar request on the forums. I suggested adding either a 2 byte 'weeks since genesis' or 'months since genesis', but starting from spec birth works too. Would either of those work for you?\n\n\njp\n\nOn Jul 22, 2013, at 6:14 AM, Mike Hearn \u003cmike at plan99.net\u003e wrote:\n\n\u003e This isn't usable for SPV wallets unless it has a birthday in it. Otherwise you either need to scan the entire chain (slow) or find a fully indexed copy of the block chain (expensive, more centralised). Just add a UNIX time as an extra 4 bytes, or if you want to save a few characters then use a uint16 that represents \"days since birth of this specification\".",
"sig": "cca719977b3664674c5319bfff2f5ca2db2feb9224293d9a2849a14fefb775353799d0dfd67de728c084b387310293120dc842bc75f34431cb0fe8e25cdd2c0f"
}