Add license notice to API headers #1927

pull theStack wants to merge 1 commits into bitcoin-core:master from theStack:headers-add_license_notice changing 9 files +45 −0
  1. theStack commented at 2:18 PM on September 1, 2026: contributor

    This PR attempts to resolve #412 in a pragmatic way, adding the same MIT license block we use in internal files (see e.g. in the most recent modules ellswift, musig and silentpayments) for the public headers. Depending on how nit-picky we are one could further refine this, e.g.:

    • add a copyright line (maybe in Bitcoin Core's style, e.g. Copyright (c) 2013-present The libsecp256k1 developers, with different starting years depending on when a module was developed/merged, or even without any year)?
    • use SPDX license identifiers (e.g. /* SPDX-License-Identifier: MIT */) for machine readability?
    • avoid mentioning the COPYING file since it's not installed? (there is still the URL though)

    Probably it's not worth it to spend a lot of time on this; I guess one way to "solve" this is also to simplify leave as-is (and then still close #412 referring to that decision), but it seems at least quite common that public headers in C libraries contain some minimum copyright/licensing information.

  2. Add license notice to API headers bef90d4079

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-09-13 01:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me