Smart Contract Management Method and Device for Blockchain