Lotto: delegate secret refactoring