As pointed out in #68 , it should be possible to refactor the code in ECDH, ECDSA and RSA proofs to allow code reuse.