http://invest4rhkpxfj5wiodffpl2j6qqsv2efxeqozusamkz4urkvwx5r4ad.onion/bitcoin-tools/index9.html
Indeed, even the basic public key ownership mechanism is implemented via a script: the script takes an elliptic curve signature as input, verifies it against the transaction and the address that owns the UTXO, and returns 1 if the verification is successful and 0 otherwise. Other, more complicated, scripts exist for various additional use cases. For example, one can construct a script that requires signatures from two out of a given three private keys to validate ('multisig'), a setup...