swap secret key definition