Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIP-003: Message format V3 #3

Open
Ronsor opened this issue Jul 12, 2019 · 0 comments
Open

LIP-003: Message format V3 #3

Ronsor opened this issue Jul 12, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Ronsor
Copy link
Member

Ronsor commented Jul 12, 2019

This proposes a new optionally backward-compatible message format (LNMSGV3/flag 131072)

In a backwards compatible form, LNMSGV3 is encapsulated in a LNMSGV2 (current-format message), with the flag 131072 (LNMSGV3-RICH). Then a new field is introduced in the payload: bodyhtml. This field contains an HTML version of the message. The normal body field contains a plaintext version. This will however, double the size of messages and increase fees.

Without backwards compatibility, LNMSGV3 is the same format as LNMSGV2, with a LNMSGV3 payload type and bodyhtml in the payload instead of body. Flag 131072 must NOT be specified.

Misc notes:

  • HTML messages can contain the following types of formatting at minimum: headers (h1-h6), bold (b/strong), italic (i, em), underline, strikethrough, images with data URLs (types: image/png, image/jpeg, image/gif).
@Ronsor Ronsor added the enhancement New feature or request label Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant