Perhaps this will be of some help to understand more about endomorphism, rings and EC. His example uses a diff formula than what's used by secp256k1 but for me it was helpful.
Maybe it is something you can easily digest. But for me this just raises questions.
Do we have some codesnippet which we can copy and put into our codebase?