I don't think this works because domain.keypair is a pointer.