Hello Azim Ahmed Great article...
How do I resolve the error below?
Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'toHexString')

Matimu Ignatius Ah next for some reason doesn't let you put variable names without a prepend NEXT_PUBLIC. So you should probably rename your env variable to NEXT_PUBLIC_PRIVATE_KEY in all the places.