ln-paywall v0.5.2 Release Notes

Release Date: 2018-10-07 // over 5 years ago
    • ๐Ÿ›  Fixed: When using the Echo middleware the invoice response status code was 200 OK instead of 402 Payment Required (issue #30)
    • ๐Ÿ›  Fixed: When using the Echo middleware error responses (including the invoice) were wrapped in JSON instead of just text (issue #30)
    • ๐Ÿ›  Fixed: GoDoc for storage.NewBoltClient(...) contained usage suggestions that would lead to the possibility of clients cheating with reusing preimages

Previous changes from v0.5.1

    • ๐Ÿ›  Fixed: Performance decreased when using Lightning Charge and the amount of invoices in the Lightning Charge server increased (issue #28)
    • ๐Ÿ›  Fixed: Since the introduction of the ln.Invoice struct the whole struct was logged instead of just the invoice string

    ๐Ÿ’ฅ Breaking changes

    ๐Ÿ“ฆ > Note: The following breaking changes don't affect normal users of the package, but only those who use their own implementations of our interfaces.

    • ๐Ÿ”„ Changed: The struct ln.Invoice now has a field ImplDepID string which is required by the middlewares. It's an LN node implementation dependent ID (e.g. payment hash for lnd, some random string for Lightning Charge). (Required for issue #28.)
    • ๐Ÿ”„ Changed: wall.LNclient now requires the method CheckInvoice(string) (bool, error) to accept the LN node implementation dependent ID instead of the preimage hash as parameter. (Required for issue #28.)