All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.ledger.ContractCodeDeployOperation Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

import com.jd.binaryproto.DataContract;
import com.jd.binaryproto.DataField;
import com.jd.binaryproto.PrimitiveType;
import com.jd.blockchain.consts.DataCodes;

@DataContract(code = DataCodes.TX_OP_CONTRACT_DEPLOY)
public interface ContractCodeDeployOperation extends Operation {

    @DataField(order = 2, refContract = true)
    BlockchainIdentity getContractID();

    @DataField(order = 3, primitiveType = PrimitiveType.BYTES)
    byte[] getChainCode();


    /**
     * 地址签名;
     *
     * 
* 这是合约账户身份 ({@link #getContractID()}) 使用对应的私钥对地址做出的签名; *
* 在注册时将校验此签名与账户地址、公钥是否相匹配,以此保证只有私钥的持有者才能注册相应的合约账户,确保合约账户的唯一性; * * @return */ @DataField(order = 4, refContract = true) DigitalSignature getAddressSignature(); @DataField(order = 5, primitiveType = PrimitiveType.INT64) long getChainCodeVersion(); /** * 合约语言 * * @return */ @DataField(order = 6, refEnum = true) ContractLang getLang(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy