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

com.jd.blockchain.consensus.NodeSettings Maven / Gradle / Ivy

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

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

/**
 * 节点的配置参数;
 * 
 * @author huanghaiquan
 *
 */
@DataContract(code=DataCodes.CONSENSUS_VIEW_NODE_SETTINGS)
public interface NodeSettings {

	/**
	 * 用于标识一个节点的地址;
* * 该值没有一个通用定义,可以是具体的通讯地址,也可以只是标识符,或者区块链地址,而是由特定的共识服务提供者的实现进行定义; * * @return */ @DataField(order=0, primitiveType=PrimitiveType.TEXT) String getAddress(); /** * Base58 格式的公钥; * * @return */ @DataField(order = 1, primitiveType = PrimitiveType.BYTES) PubKey getPubKey(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy