Gavin Andresen [ARCHIVE] on Nostr: 📅 Original date posted:2012-12-06 📝 Original message:On Thu, Dec 6, 2012 at ...
📅 Original date posted:2012-12-06
📝 Original message:On Thu, Dec 6, 2012 at 12:55 PM, Mike Hearn <mike at plan99.net> wrote:
> Re: the newest spec. Rather than make the signature over the
> "concatenation of", why not just make it a signature over the
> serialized protobuf minus the signature field (as I did in my demo
> code). Otherwise it seems like we'd need more code than really
> necessary. We can state explicitly tags must be ordered if you want,
> even though all implementations should do that already.
OK. I want to keep the signature field required, though, so how about:
signature: digital signature over a protocol buffer serialized variation of
the SignedPaymentRequest message where signature is a zero-byte array and
fields are serialized in numerical order (all current protocol buffer
implementations serialize fields in numerical order), using the public key
in pki_data.
--
--
Gavin Andresen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20121206/bc7ff765/attachment.html>
Published at
2023-06-07 10:43:55Event JSON
{
"id": "79344dc8df77bf633dd7bf4cad372db50f7441e14ab42b68fc0cdb482e6ccbc3",
"pubkey": "857f2f78dc1639e711f5ea703a9fc978e22ebd279abdea1861b7daa833512ee4",
"created_at": 1686134635,
"kind": 1,
"tags": [
[
"e",
"1bd78b419247dfb60fa2e8b1cf4983b406411160c7aa6e19780a4034c5da34de",
"",
"root"
],
[
"e",
"0a8f4d08005fd788e3f1dcc22043f56d8b1f062890dbe7625904b1774034f473",
"",
"reply"
],
[
"p",
"f2c95df3766562e3b96b79a0254881c59e8639f23987846961cf55412a77f6f2"
]
],
"content": "📅 Original date posted:2012-12-06\n📝 Original message:On Thu, Dec 6, 2012 at 12:55 PM, Mike Hearn \u003cmike at plan99.net\u003e wrote:\n\n\u003e Re: the newest spec. Rather than make the signature over the\n\u003e \"concatenation of\", why not just make it a signature over the\n\u003e serialized protobuf minus the signature field (as I did in my demo\n\u003e code). Otherwise it seems like we'd need more code than really\n\u003e necessary. We can state explicitly tags must be ordered if you want,\n\u003e even though all implementations should do that already.\n\n\nOK. I want to keep the signature field required, though, so how about:\n\nsignature: digital signature over a protocol buffer serialized variation of\nthe SignedPaymentRequest message where signature is a zero-byte array and\nfields are serialized in numerical order (all current protocol buffer\nimplementations serialize fields in numerical order), using the public key\nin pki_data.\n\n-- \n--\nGavin Andresen\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20121206/bc7ff765/attachment.html\u003e",
"sig": "81e71354dc48fda4489b3b43aa6fb6b42f583c323e0da45ba773e360de76a518b9fc2bc2c7c3665d5c1de70775760afc0abc29883ac8656f86bc0e49b733063a"
}