Merge "Convert KeyParameter to wire type."