A method for deploying a smart contract, comprising: receiving, by a blockchain node, a transaction for creating the smart contract, wherein the transaction comprises machine codes of the smart contract, and the machine codes are obtained by a compilation service provider performing Ahead of Time, AoT, compilation for bytecodes of the smart contract, and wherein the transaction comprises a signature of the compilation service provider for the machine codes; invoking, by the blockchain node, a system contract comprising a pre-defined public key corresponding to a trusted compilation service provider and sending the signature to the system contract; receiving, by the blockchain node, an identification result returned by the system contract, wherein the identification result is used to indicate whether the signature is successfully verified by the pre-defined public key corresponding to the trusted compilation service provider; and completing, by the blockchain node, a deployment of the smart contract in response to determining that the machine codes are obtained by the trusted compilation service provider compiling the bytecodes, the determining comprising determining, by the blockchain node, the compilation service provider belongs to the trusted compilation service provider in response to that the signature is successfully verified by the pre-defined public key corresponding to the trusted compilation service provider, wherein the completing the deployment of the smart contract comprises: initiating, by the blockchain node, a consensus process for creating the smart contract within a set of consensus nodes, creating, by the blockchain node, an address for the smart contract, wherein the address of the smart contract created by each consensus node for the smart contract is the same, and storing, by the blockchain node, the machine codes of the smart contract locally. receiving, by a blockchain node, a transaction for creating the smart contract, wherein the transaction comprises machine codes of the smart contract, and the machine codes are obtained by a compilation service provider performing Ahead of Time, AoT, compilation for bytecodes of the smart contract, and wherein the transaction comprises a signature of the compilation service provider for the machine codes; invoking, by the blockchain node, a system contract comprising a pre-defined public key corresponding to a trusted compilation service provider and sending the signature to the system contract; receiving, by the blockchain node, an identification result returned by the system contract, wherein the identification result is used to indicate whether the signature is successfully verified by the pre-defined public key corresponding to the trusted compilation service provider; and completing, by the blockchain node, a deployment of the smart contract in response to determining that the machine codes are obtained by the trusted compilation service provider compiling the bytecodes, the determining comprising determining, by the blockchain node, the compilation service provider belongs to the trusted compilation service provider in response to that the signature is successfully verified by the pre-defined public key corresponding to the trusted compilation service provider, wherein the completing the deployment of the smart contract comprises: initiating, by the blockchain node, a consensus process for creating the smart contract within a set of consensus nodes, creating, by the blockchain node, an address for the smart contract, wherein the address of the smart contract created by each consensus node for the smart contract is the same, and storing, by the blockchain node, the machine codes of the smart contract locally. initiating, by the blockchain node, a consensus process for creating the smart contract within a set of consensus nodes, creating, by the blockchain node, an address for the smart contract, wherein the address of the smart contract created by each consensus node for the smart contract is the same, and storing, by the blockchain node, the machine codes of the smart contract locally.