func (c *EphemeralKey) MakeCredentials(message []byte, accessToken string) (map[string]string, error) {
	timestamp := time.Now().Unix()

	msgHash, err := commons.GenerateMessageHash(message, timestamp)
	if err != nil {
		return nil, err
	}
	return c.generateCredentials(msgHash, accessToken, timestamp)
}
// MakeCredentials generates all the needed credentials to authenticate the credential owner
MakeCredentials generates all the needed credentials to authenticate the credential owner
// MakeCredentials generates all the needed credentials to authenticate the credential owner
func (c *EphemeralKey) MakeCredentials(message []byte, accessToken string) (map[string]string, error) {
	timestamp := time.Now().Unix()
	msgHash, err := commons.GenerateMessageHash(message, timestamp)
	if err != nil {
		return nil, err
	}
	return c.generateCredentials(msgHash, accessToken, timestamp)
}
func ( c * EphemeralKey ) MakeCredentials ( message [ ] byte , accessToken string ) ( map [ string ] string , error ) { timestamp := time . Now ( ) . Unix ( ) msgHash , err := commons . GenerateMessageHash ( message , timestamp ) if err != nil { return nil , err } return c . generateCredentials ( msgHash , accessToken , timestamp ) }
MakeCredentials generates all the needed credentials to authenticate the credential owner
MakeCredentials generates all the needed credentials to authenticate the credential owner