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

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

@DataContract(code = DataCodes.BLOCK)
public interface LedgerBlock extends BlockBody {

	/**
	 * 区块哈希;
	 * 
	 * 
* 这是对 {@link BlockBody} 的哈希;
* 对于创世区块而言,区块哈希是 {@link BlockBody#getPreviousHash()} 和 * {@link BlockBody#getLedgerHash()} 属性均为 null 的情况下进行哈希计算得到的结果; * * @return */ @DataField(order = 1, primitiveType = PrimitiveType.BYTES) HashDigest getHash(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy