This repository has been archived by the owner on Feb 11, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
proposal: Update invoice signature spec #318
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@thomastaylor312 Would love your thoughts here! |
Another proposal for signatures; I think this is what I would prefer for a TOML-based solution: [[signature]]
# Untrusted label: Maybe Real Signer <[email protected]>
signer = """
key = "1c44..."
role = "creator"
at = 1611960337
"""
signature = "<hex(sign('BINDLE-SIGNATURE-V1:' || sha256(invoice) || ':' || meta))>" |
I think I've covered most of the changes in #322 now. Biggest change to the protocol is that bindle GET/POST would work with a string version of the invoice, e.g. invoice = '''
bindleVersion = "1.0.0"
[bindle]
name = "mybindle"
version = "0.1.0"
...
'''
[[signature]]
... |
Just getting round to this in #322. I'll drop all comment there |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Following up on #284 and #292, I'd like to change the signature spec from signing data derived from the invoice file to signing the invoice file itself. This would require a few related changes:
invoice.toml
itself, but as part of a separate structure (e.g.signatures.toml
; name bikeshedding welcome)invoice.toml
(and signatures) rather than just the semantic dataDisadvantages
Advantages
The text was updated successfully, but these errors were encountered: