This is a line in Solidity's documentation:

Machine-readable license specifiers are important in a setting where publishing the source code is the default."

What is meant here by publishing the source code and machine-readable license specifier?

  • 1
    See SPDX. Commented Aug 22, 2022 at 7:29
  • something like // SPDX-License-Identifier: MIT
    – sola24
    Commented Aug 22, 2022 at 8:35

1 Answer 1


Companies often make their smart contract code available publicly. This increases trust in the smart contract. Publishing the code means making the code available publicly.

Since making source code available always touches on legal problems with regards to copyright, the Solidity compiler encourages the use of machine-readable SPDX license identifiers. Every source file should start with a comment indicating its license:

// SPDX-License-Identifier: MIT

The compiler does not ignore this like other comments. That's what is meant by machine-readable

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.