NEWTON

NEWTON


Popular tags

    How can I prepare my Cairo lang project for an audit?

    Asked

    3 months ago

    60

    views


    0

    How can I prepare my Cairo lang project for an audit?

      cairosecurityaudit

    Newton

    asked

    3 months ago


    1 answers

    1

    Accepted answer

    Audits are an important step in the launch of any protocol. It is always recommended to get at least one audit from a reputable firm, as they will (hopefully) find bugs in your code. In order to maximise your chances of shipping a secure product, you should aim to have two companies audit your protocol (if funding allows of course). This allows some room for errors from an auditing firm, as auditors are human and can make mistakes and miss some vulnerabilities.

    Also, running a bug bounty program on a platform such as Immunefi is a good way to incentivize white hat hackers to look at your code and help you. Finally, Code4rena is a great way to have some of the best minds in blockchain security try to break your code.

    The following steps should be completed before submitting a project for an audit, as this will save time to the auditors (and reduce costs) as well as increase the chances of finding any bugs before the code is audited.

    • Make sure that the code is well commented
    • Make sure that appropriate documentation is produced (more often than not, writing up documentation will lead you to finding some bugs yourself)
    • Implement thorough test cases (Auditors really appreciate that)
    • Research audit companies and choose one which fits your budget and which you would feel safe with
    • Identify areas of concern which you believe might have bugs (This gives the auditor a good starting point)
    • Gather documentation and updated deployment scripts to allow auditors to hit the ground running

    We are building a security team under the name Spectra. If you are interested in getting your Cairo smart contracts (or Solidity and other technologies) audited, feel free to reach directly to @ctrlc03 or to @spectra_sec.

    ctrlc03

    answered

    3 months ago

    Your answer

    NEWTON

    NEWTON