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

com.jd.blockchain.ledger.LedgerMetadata 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;
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