Extended keys documentation and set bools instead of changing flags in the keys assertion