<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by David Goldberg on Medium]]></title>
        <description><![CDATA[Stories by David Goldberg on Medium]]></description>
        <link>https://medium.com/@bloctrax?source=rss-654dac6a03fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*CGf547JDLlvbQ1FW0wUYfg.jpeg</url>
            <title>Stories by David Goldberg on Medium</title>
            <link>https://medium.com/@bloctrax?source=rss-654dac6a03fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 13:58:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bloctrax/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Philosophy of Technical Due Diligence]]></title>
            <link>https://medium.com/@bloctrax/philosophy-of-technical-due-diligence-c6b89683ca76?source=rss-654dac6a03fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6b89683ca76</guid>
            <category><![CDATA[venture-capital]]></category>
            <category><![CDATA[mergers-and-acquisitions]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[angel-investors]]></category>
            <category><![CDATA[due-diligence]]></category>
            <dc:creator><![CDATA[David Goldberg]]></dc:creator>
            <pubDate>Fri, 05 Oct 2018 06:06:39 GMT</pubDate>
            <atom:updated>2018-10-18T03:38:57.684Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7op5ggYLeNBhfw9muCO7g.jpeg" /></figure><p>So you’re an investor who has found a company you want to invest in. The founders are motivated and ambitious, the idea is great, and the execution (so far) is on point. Your dilemma is that the company is a software company and you’re not familiar with how to properly assess the quality of their software and ability to deliver on their roadmap. This is especially important where the product itself is highly technical in nature.</p><p>We’ve all heard about projects that over promise and under deliver functionality because they don’t have the technical skills or expertise to execute. When investing in a software company it’s important for any investor to assess the quality of the software and code prior to funding the project.</p><p>This blog post is less of a step-by-step set of instructions, and more of a general guide on how to approach completing <em>Technical Due Diligence</em> as it pertains specifically to software, code, and software engineering talent.</p><p>When we perform technical due diligence<em>, </em>we assess the code and development team of a project and provide a report summarizing our technical opinion. The report contains a high level overview about the quality of the software, as well as whether or not we feel that the project’s technical team has the expertise required to execute on their software development goals.</p><p>Imagine for a moment that you are buying a new home. Wouldn’t you want to hire a professional inspector to assess and flag potential problems with the home prior to spending your hard earned cash on the purchase? The cost of an inspection for a home is small relative to the actual cost of the home and the potential cost of having to fix issues with the home that emerge after the purchase has been made. The same can be said about investing in software companies. There is post-investment downside risk and overhead cost if a tech company’s actual technology turns out to be low quality.</p><p>The goals of a technical due diligence<em> </em>engagement depend on the stated technical goals of the project. A company projecting to have 20 million users in year 3 after their product’s launch may sound promising and achievable based on user growth to date, however investors will be in for a rude awakening if the technical aspects of the project are not in order.</p><p>The technical diligence process should be thorough, but quick and efficient, providing clear and easy to understand analysis with adequate detail to back up any opinions formed. The end deliverable should be a brief report capturing a high level overview of the findings, containing only the most relevant findings, along with concrete examples supporting any opinion formed.</p><p>The categories described below are just a few of what we believe are the most important considerations when performing technical due diligence. The technical diligence process itself should provide clear and easy to understand analysis with adequate detail to backup any opinions formed without getting mired in unimportant details. This list is not meant to be comprehensive, but merely aims to set the foundation to give you a sense of what to look for when doing technical due diligence. <strong>Code quality, maintainability, testing, security, performance and scalability, observability, engineering tradeoffs, and other technical information depending on customized needs.</strong></p><p>If you have any questions or want to get in touch about technical due diligence reach out to contact@bloctrax.com, or check us out at <a href="https://www.bloctrax.com/">bloctrax.com</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6b89683ca76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Philosophy of a Smart Contract Security Audit]]></title>
            <link>https://medium.com/@bloctrax/philosophy-of-a-smart-contract-security-audit-1e111efd28cb?source=rss-654dac6a03fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e111efd28cb</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[dapps]]></category>
            <dc:creator><![CDATA[David Goldberg]]></dc:creator>
            <pubDate>Mon, 09 Apr 2018 08:15:53 GMT</pubDate>
            <atom:updated>2018-10-05T06:10:58.069Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7op5ggYLeNBhfw9muCO7g.jpeg" /></figure><p>It’s assumed that by reading this you already have a basic understanding of what a smart contract is. For more information about what a smart contract is, how a smart contract works, etc., refer to the <a href="https://github.com/ethereum/wiki/wiki/White-Paper">Ethereum white paper</a>.</p><p>This blog post is less of a step-by-step set of instructions, and more of a general guide on how to approach auditing and reviewing smart contracts. Keep in mind that that there is no fool-proof method to guarantee a smart contract is without flaws, just like there is no fool-proof way to guarantee any specific piece of software runs bug free.</p><p>When anyone performs security audits, or writes smart contract code, they should recognize the importance of ensuring quality and code reliability. While certain protocols can be followed (and even automated) to protect against many common security issues and reliability threats, every piece of smart contract code should be audited and reviewed in a high-touch way. At the end of the day almost every contract, even if it’s just using common libraries like <a href="https://openzeppelin.org/">OpenZeppelin</a>, has been customized in some way. The process described below are just a few of what we believe to be the most important considerations when reviewing or writing smart contracts.</p><p>Smart contracts involve a set of rules that must be satisfied before a transaction takes place. Before we begin with a summary of how we approach the security audit process, it’s important to consider why security audits are necessary. There are really two main reasons:</p><ol><li><strong>To protect against security hacks and vulnerabilities</strong>. For example, during the famous DAO attack a hacker was able to drain more than 3.6 million Ether from a smart contract. While effective security audits cannot 100% guarantee protection from hacks such as the one mentioned above, they can certainly reduce the risk of security breaches.</li><li><strong>To ensure that code will execute as expected. </strong>Unlike traditional software, smart contracts and any cryptocurrency transaction for that matter are <em>final</em> once money / cryptocurrency is sent from party A to party B or vice versa. Because there is no undoing a transaction that completes in the blockchain, it is critical to make sure that the smart contract code will execute as expected and perform the actions that adhere to the contract’s intended behavior<strong>.</strong></li></ol><p><strong>Phase 1: It’s all about<em> specification, specification, specification</em></strong></p><p>Any consultant or engineer will tell you that the first step of any new project is to gather requirements (i.e. write a specification). At the end of this process, we want to have a single document, the specification, which captures not only the <em>spirit</em> of the contract (i.e. what the original authors intended), but also all of the nitty-gritty implementation details.</p><p>Start by asking broad, open-ended questions. What are you trying to accomplish with this contract? What are the goals? What does success look like? The goal here is to suss out the <em>spirit</em> of the contract. Only once you understand that can you begin to help someone make good decisions. A good takeaway from this phase might be something like:</p><p>“The smart contract aims to raise 30,000 Ether by performing an ICO. The ICO should only be available to whitelisted private investors from January 1st 2017 to January 30th 2017 with a maximum total private contribution limit of 15,000 Ether and an individual contribution limit of 1,500 Ether. Beginning on February 1st 2017 the ICO should become available to the general public with a total contribution limit equal to 30,000 Ether, inclusive of funds raised from the private phase. During the public phase the individual contribution limit should be 1,000 Ether until February 13th, at which point the individual contribution limit should be removed. The ICO contract should immediately release ERC20-compatible tokens to all contributors at an exchange rate of 1 Ether to 1 token. Ether raised during the ICO should be immediately and automatically transferred to an Ethereum address of the client’s choosing, and the ICO contract itself should not hold on to any funds. The owner of the contract should have the ability to pause and resume fundraising at any time, as well as the ability to modify or remove the individual contribution limit at any time.”</p><p>Now that we’ve captured the <em>spirit</em> of the contract, it will be much easier to advise someone on how to take their loose (or non-existent) specification and transform it into something concrete, because we understand what they’re trying to do so we can identify deficiencies much more easily.</p><p>I’m not going to include a sample specification here for brevity, but you should be looking to create a document that has enough level of detail that the actual smart contract code can (almost) be matched up to the document line-for-line.</p><p><strong>Phase 2: Manual Review</strong></p><p>Once you have a concrete specification and a complete understanding of the contracts intended behavior, the next step is to manually review the contract. This is by far the most important part of the review process. Software automation is great, in particular it can make sure that your contract adheres to certain best practices and avoids common and well-known sources of vulnerabilities and bugs, but because each smart contract contains unique business logic that is specific to that smart contract alone it is critical that each smart contract is manually scrutinized. You should absolutely run every verification tool you can on the contract, but until someone develops something that looks like Strong AI (in which case we’ll all be out of jobs anyways), manual review is king.</p><p>During the manual review process, you’re trying to do three things:</p><ol><li>Verify every detail in the specification is correctly implemented in the contract.</li><li>Verify the contract does not have any behavior (explicit or implicit) that is not captured by the specification.</li><li>Verify the contract doesn’t violate the original intended behavior of the specification / doesn’t have any bugs.</li></ol><p>This is the part where you’re trying to find undefined or unexpected behavior, and common security vulnerabilities like re-entrance and overflows. As a general rule of thumb, you should have <em>at least</em> two independent parties (not including the contract author) perform a manual review of the contract. The more sets of eyes you have on the smart contract code the more likely it is that you will catch any potential issues.</p><p><strong>Phase 3: Automated verification</strong></p><p>The automated verification phase has two sub-phases. The first is writing (and running) a comprehensive test suite that exercises the contract in its entirety. High code coverage is important, but again, exercising the <em>spirit</em> of the contract is what’s most important. It’s very easy to have full coverage for a contract that is still riddled with bugs because the person writing the tests didn’t focus on capturing the specification in the tests. In other words, code coverage metrics provide insights into the percentage of lines that are tested in your smart contract code, however, they offer no insight into the <em>quality</em> of the test coverage.</p><p>You can feel confident that you have a good test suite when you can walk through your specification line-by-line and find a test (or several) for each case. Also keep in mind it is important to write tests for both the success use cases (commonly referred to as “Happy Path”), as well as the exception use cases where you expect an assertion error to be thrown and the entire transaction to be invalid.</p><p>With that said, while high test coverage is not necessarily indicative of a high quality test suite, low test coverage is almost always indicative of a low quality test suite, and you should be wary of any project whose test suite lacks significant coverage.</p><p>The second sub-phase of automated verification is running automatic verification tools like <a href="https://github.com/melonproject/oyente">Oyente</a> and <a href="https://github.com/ConsenSys/mythril">Mythril</a> which use symbolic execution (among other techniques) to automatically detect certain classes of security vulnerabilities. Again, just because these tools don’t cause any issues to emerge does <em>not</em> mean that the contract is guaranteed to be correct. In fact, far from it, but these tools will help rule out a variety of common bugs that could be missed by manual verification and test suites.</p><p>If you have any questions or want to get in touch reach out to david@bloctrax.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e111efd28cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>