I think you've misunderstood what SHA-256 is.
SHA is a hash function, ie: it takes one value (a message), and outputs one value (a hash). There is no key involved.
Bitcoin signature uses ECDSA, there's stuff like PGP which uses RSA/DSA. But no, SHA256 does not allow for signatures.
The closest I can think of, is when a website publishes a SHA checksum for a file, allowing you to verify that the file was not maliciously altered.
Maybe explain your specific situation more, that might help others figure out what you're looking for.
thanks to clarify that.
I read in bitcoin or other coins, a transaction is accepted when other nodes recognize that the public key (address) and the hashed transaction itself were signed with the same key.
I'm interested in how this is done in specific, i guess i should look up for ECDSA now. Thats why i was not finding anything
If you can still point me to some code sample / documents you know would be appreciated.
Thanks