Text this: Entangled state testing in the quantum Byzantine agreement