Skip to content

Add LICENSE (BSD-3-Clause, retaining Go authors notice) - #10

Open
AskAlexSharov wants to merge 4 commits into
masterfrom
chore/add-license
Open

Add LICENSE (BSD-3-Clause, retaining Go authors notice)#10
AskAlexSharov wants to merge 4 commits into
masterfrom
chore/add-license

Conversation

@AskAlexSharov

@AskAlexSharov AskAlexSharov commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Why

  • keccakf_arm64.s carries a Go-project copyright header saying "license that can be found in the LICENSE file" — but the repo had no LICENSE file. The rounds body is copied verbatim from Go's crypto/internal/fips140/sha3/sha3_arm64.s (diffed to confirm), and the package as a whole derives from golang.org/x/crypto/sha3 after upstream dropped its asm. BSD-3-Clause requires retaining the copyright notice and license text.
  • Beyond compliance, the repo itself was unlicensed — technically all-rights-reserved for downstream users (geth, etc. could not legally vendor it).

What

Single BSD-3-Clause LICENSE covering the whole repository, with both copyright lines (erigon authors + Go authors) and a short provenance note. This is the same approach go-ethereum took when it vendored the x/crypto keccak code after upstream removed the assembly.

If maintainers prefer a different license for the original portions (Apache-2.0 like other erigontech libs), the Go BSD-3 notice still must remain for the derived files — happy to restructure.

keccakf_arm64.s carries a Go-project copyright header pointing at
"the LICENSE file", which did not exist — the rounds body is copied
verbatim from Go's crypto/internal/fips140/sha3/sha3_arm64.s, and the
package as a whole derives from golang.org/x/crypto/sha3, whose asm
was removed upstream. BSD-3-Clause requires shipping the license text
alongside the copied code, and the repo was otherwise unlicensed.

License the whole repository under the same BSD-3-Clause text, keeping
the Go authors' copyright line — the same approach go-ethereum took
when it vendored the x/crypto keccak code.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository-wide LICENSE file to address missing licensing/attribution for code derived from Go / x/crypto (notably the arm64 assembly referencing a LICENSE file).

Changes:

  • Introduces a BSD-3-Clause LICENSE at repo root.
  • Adds copyright lines and a brief provenance note for derived Go code.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread LICENSE
Comment thread LICENSE
Comment thread LICENSE
Comment thread LICENSE

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread LICENSE

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread LICENSE

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants