I have written a contract which read and write data into blockchain using truffle. when i deployed that contract on rinkeby and called functions using web3.js the read functions works fine. but write function does not work. On reading i came to know that each transaction has to be signed by private key , but could not find proer tutorial or steps on this.
I have checked web3 provider and it seems to be ok and isConnected()
returns true.