I've understand that the on-chain code is stored in the blockchain through Playground module which is in sync against a local node. But how to "publish" this code to run anywhere? It's an accessible process, It must have some "certification"?
First of all on-chain code isn't stored in the blockchain, the hash of on-chain code is.
To use on-chain validator on testnet or mainnet steps are:
- Compile on-chain code into plutus script
- Generate address from plutus script
- Lock funds into plutus script address (Don't forget Datum!!!)
- Pass plutus script for validation to unlock funds from plutus script address
You can try going trough Alonzo exercises for an example how to do all of these steps.
And as for certification I don't think there is an official available certification yet