Increase encryption/encoding performance of ECDSA & SHA256

I’m working with Bitcoin and I’m getting poor performance in python.

My bottle necks are:

  • ecdsa.curves.Curve()
  • hashlib.sha256()

I do have the RTX 3090 for gaming, but was wondering if there was anyway I can use an alternative Python library that can utilize my GPU. It’s not a lot of code so I’d be open to trying to write it in C if I must.

If it’s possible, could someone please point me to where I should study. -Thanks