Transaction signature generation
Here and in the following articles I explain how to build and sign a Bitcoin transaction from scratch. There are also C code examples attached:
https://davidederosa.com/basic-blockchain-programming/inside-transactions/