Remove signature and add secret key (protocol version 3)