Gavin Andresen - 2013-12-04 03:47:40

https://gist.github.com/gavinandresen/5616606 sketches out one way to do it.