fix(protocol): bind credential public key curve to its algorithm (#752)