News for hackers. Stuff that matters.
Re:Understanding Ethereum Smart Contracts by maehwasu on Wednesday November 29, 2017 @09:59AM (#15807224)
> You can break up your code into multiple contracts, but the tradeoff is an increased attack area.

This is the way to get programs over 500 lines, and it doesn't increase the attack area as much as you'd think, since you can essentially hard-code the addresses of outside contracts into your code--it's not a combinatorial explosion.

Re:Understanding Ethereum Smart Contracts by Slartie on Wednesday November 29, 2017 @10:08AM (#15807306)
> and it doesn't increase the attack area as much as you'd think

You should call Gavin Wood and tell him that :D

Re:Understanding Ethereum Smart Contracts by jatsign on Wednesday November 29, 2017 @11:09AM (#15807870)
That makes sense, thanks. I hadn't thought of making it hard-coded (or just set at construction). The examples I'd seen were "upgradable" tokens.
Re:Understanding Ethereum Smart Contracts by maehwasu on Wednesday November 29, 2017 @02:16PM (#15809867)
Yeah, I did a lot of upgradeable stuff early, but have since moved to more hardcoded stuff for that exact reason.