Lez on Nostr: The way it works in the current version of git-remote-blossom is that it saves both ...
The way it works in the current version of git-remote-blossom is that it saves both the sha1 and the sha256 hash in the state event. So a ref tag looks like this:
`["refs/heads/master", "3437fd950d4ba37ba51e3bc788025698cfb20ca1", "3b58e484825e5b96428ab0b0c19cb760d5ebbd39acb4795446a89c99482e2d62"],`
It needs the sha256 to be able to start the graph traversal at the HEAD. All the rest can be calculated.
This is somewhat diverges from the current NIP-34. It needs to be updated with the sha256 - which is right now in the place of the optional parent commit ids.
Published at
2024-11-18 22:39:04Event JSON
{
"id": "2cfad203a33fcf83bc22749489d35904b6f3fc68b56a28a896883dc3b82cedf0",
"pubkey": "cfd7df62799a22e384a4ab5da8c4026c875b119d0f47c2716b20cdac9cc1f1a6",
"created_at": 1731969544,
"kind": 1,
"tags": [
[
"e",
"7211667174a4d4964401e8d03c49b561112247674ebc50b3b08a01b50af77fdf",
"wss://relay.damus.io",
"root"
],
[
"e",
"da1e0320e30a5f1fc8d92904773576c518b3f6a8562cea99538ae933020a7cce",
"wss://relay.damus.io",
"reply"
],
[
"r",
"26689f97810fc656c7134c76e2a37d33b2e40ce7"
],
[
"a",
"30617:a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d:ngit"
],
[
"p",
"a008def15796fba9a0d6fab04e8fd57089285d9fd505da5a83fe8aad57a3564d",
"wss://relay.nostr.band/"
]
],
"content": "The way it works in the current version of git-remote-blossom is that it saves both the sha1 and the sha256 hash in the state event. So a ref tag looks like this:\n`[\"refs/heads/master\", \"3437fd950d4ba37ba51e3bc788025698cfb20ca1\", \"3b58e484825e5b96428ab0b0c19cb760d5ebbd39acb4795446a89c99482e2d62\"],`\n\nIt needs the sha256 to be able to start the graph traversal at the HEAD. All the rest can be calculated.\nThis is somewhat diverges from the current NIP-34. It needs to be updated with the sha256 - which is right now in the place of the optional parent commit ids.",
"sig": "7fbe95c049aac4314ac4e9fe404b742863cf2b9ea570400547f1051e2c3d9414ae664551a0cda2f4b1b47a1074437f76c8fcefa9f21e7b809956958afefc4bae"
}