Us

Using random forest to cluster smart contract functions

Hacker News

Using random forest to cluster smart contract functions

Hi All, A team at EthParis just did a cool thing based on my/Eveem API for decompilation of smart contracts. They took syntax trees of decompiled contract functions ( https://eveem.org/json/0x06012c8cf97BEaD5deAe237070F9587f8E7... ), and launched machine learning on top of them. This resulted in groupings of contract functions not by name and behaviour. Here's the outline: https://twitter.com/willprice221/status/1104739673593835521 Here's a direct link to an example contract: http://35.198.178.99:8080/contract/0x06012c8cf97bead5deae237... They were able to cluster various implementations of the same functions (e.g. transfer), and also found out that some of the bugs in functions make them pushed into separate clusters. I think it may be one of the first analysis of contracts based on their decompiled bytecodes (and not just bag of word assembly). Compared to analysing the original source codes it has a few benefits: - way more data to work with (~3M contracts, not ~200-300k with published sources) - the codes after the decompilation have a form that is close to canonical - that is, two contracts that implement similar functionality will look similar - with source codes this can vary. The team behind it is Will Price, Aleksey Studnev, Ankit Chiplunkar and Alexander Azarov (ccing them to this post)

Share card

Actual performance

3points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
69%69% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io · Missing: https docs, excited, just released
69%69% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
47%47% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
39%39% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Product HuntUnlikely to reach the leaderboard · Strong signals: mac, using, code · Missing: agents, macos, agent
35%35% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: smart · Missing: web3, chat, crypto
2%2% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Sm
Smart contract tutorial – II55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Smart contract tutorial – II

Hacker News2
DA
DAPP – Smart Contract for WC Bets59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

DAPP – Smart Contract for WC Bets

Hacker News6
Op
Optimism Smart Contract Breakdown59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Optimism Smart Contract Breakdown

Hacker News1
Fi
Find any smart contract on Cookbook57%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Find any smart contract on Cookbook

Hacker News28
Ti
Timelock smart contract utilising M of N oracles67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Timelock smart contract utilising M of N oracles

Hacker News1
Sm
Smart Contract Docs Using GPT64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Smart Contract Docs Using GPT

Hacker News5
Sm
Smart default for Rails time_zone_select using jQuery53%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Smart default for Rails time_zone_select using jQuery

Hacker News1
NaviLex
NaviLex50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI Contract Analyser

Indie Hackers1$30/moai
Go
Go Freaking Do It – Smart contract for reaching your goals55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Go Freaking Do It – Smart contract for reaching your goals

Hacker News128
A
A smart contract for Super Bowl Ethereum bets63%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A smart contract for Super Bowl Ethereum bets

Hacker News4