com.jd.blockchain.ledger.LedgerMetadata Maven / Gradle / Ivy
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;
import com.jd.blockchain.crypto.HashDigest;
/**
* 账本的元数据;
*
* @author huanghaiquan
*
*/
@DataContract(code = DataCodes.METADATA, name = "LEDGER-METADATA")
public interface LedgerMetadata {
/**
* 账本的初始化种子;
*
* @return
*/
@DataField(order = 1, primitiveType = PrimitiveType.BYTES)
byte[] getSeed();
/**
* 共识参与方的默克尔树的根;
*
* @return
*/
@DataField(order = 2, primitiveType = PrimitiveType.BYTES)
HashDigest getParticipantsHash();
/**
* 账本配置的哈希;
*
* @return
*/
@DataField(order = 3, primitiveType = PrimitiveType.BYTES)
HashDigest getSettingsHash();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy