public_key ) Signature sign_to_message( message, private_key ) The signature could be calculated from the message and the private_key. In other words, we sign to the message using the private_key. We can verify the signature to the message using the public_key.
Note that we don’t need the private_key to verify. -> What is the message in OP_CHECKSIG process? Bitcoin uses ECDSA signature algorithm but basic architecture is same.