Implemented (most of) partial signature scheme.