If I buy some bitcoin worth $1K, including fee and cost, then one year later it is worth $2K. At that time, I give it to my friend. My friend then sells it for $2K. Then, does my friend have to pay tax?
You made the gain, so you and only you have to pay capital gain tax if there's one where you are.