A method, performed by an electronic device, of authenticating a user, the method comprising: obtaining an authentication model; obtaining behavior data with respect to the user; authenticating the obtained behavior data by using the obtained authentication model; and based on results of the authenticating, submitting the authenticated behavior data to a blockchain, wherein the authentication model is a model trained based on at least one piece of behavior data with respect to the user enrolled in the blockchain wherein the authenticating of the obtained behavior data comprises continuously authenticating the obtained behavior data during one session, wherein the authenticating of the obtained behavior data comprises: obtaining speech data as the behavior data of the user, applying feature information extracted with respect to the speech data of the user to a user model and a universal background model, wherein the universal background model is a general feature distribution model of various types of music, determining whether the feature information extracted with respect to the speech data of the user is close to a pattern by the user model or a pattern by the universal background model, determining which is greater between a value indicating that the feature information extracted with respect to the speech data is close to the the pattern by the user model or a value indicating that the feature information extracted with respect to the speech data is close to the pattern by the universal background model, obtaining a confidence value with respect to the behavior data based on which value is greater, and based on the confidence value, authenticating the obtained behavior data. obtaining an authentication model; obtaining behavior data with respect to the user; authenticating the obtained behavior data by using the obtained authentication model; and based on results of the authenticating, submitting the authenticated behavior data to a blockchain, wherein the authentication model is a model trained based on at least one piece of behavior data with respect to the user enrolled in the blockchain wherein the authenticating of the obtained behavior data comprises continuously authenticating the obtained behavior data during one session, wherein the authenticating of the obtained behavior data comprises: obtaining speech data as the behavior data of the user, applying feature information extracted with respect to the speech data of the user to a user model and a universal background model, wherein the universal background model is a general feature distribution model of various types of music, determining whether the feature information extracted with respect to the speech data of the user is close to a pattern by the user model or a pattern by the universal background model, determining which is greater between a value indicating that the feature information extracted with respect to the speech data is close to the the pattern by the user model or a value indicating that the feature information extracted with respect to the speech data is close to the pattern by the universal background model, obtaining a confidence value with respect to the behavior data based on which value is greater, and based on the confidence value, authenticating the obtained behavior data. obtaining speech data as the behavior data of the user, applying feature information extracted with respect to the speech data of the user to a user model and a universal background model, wherein the universal background model is a general feature distribution model of various types of music, determining whether the feature information extracted with respect to the speech data of the user is close to a pattern by the user model or a pattern by the universal background model, determining which is greater between a value indicating that the feature information extracted with respect to the speech data is close to the the pattern by the user model or a value indicating that the feature information extracted with respect to the speech data is close to the pattern by the universal background model, obtaining a confidence value with respect to the behavior data based on which value is greater, and based on the confidence value, authenticating the obtained behavior data.