def METHOD_NAME():
    hookenv.status_set('maintenance', 'Generating default keypair')
    key = candid.generate_keypair()
    leadership.leader_set({"private-key": key["private"]})
    leadership.leader_set({"public-key": key["public"]})