Convert u256 to string

hey @calldelegation you suggested me to do something similar earlier here: Problems with signature verification on chain

can you also look into this and suggest me where I am going wrong?