com.jd.blockchain.consensus.client.ClientSettings Maven / Gradle / Ivy
package com.jd.blockchain.consensus.client;
import com.jd.blockchain.consensus.ConsensusViewSettings;
import com.jd.blockchain.consensus.SessionCredential;
import com.jd.blockchain.crypto.PubKey;
/**
* 共识客户端的配置参数;
*
* @author huanghaiquan
*
*/
public interface ClientSettings {
/**
* 客户端ID;
*
* @return
*/
int getClientId();
/**
* 客户端的公钥;
*
* @return
*/
PubKey getClientPubKey();
/**
* 共识网络的配置参数;
*
* @return
*/
ConsensusViewSettings getViewSettings();
/**
* 凭证信息;
*
* @return
*/
SessionCredential getSessionCredential();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy