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

com.jd.blockchain.ledger.BlockBody 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_BODY)
public interface BlockBody extends  LedgerDataSnapshot{
	
	@DataField(order=2, primitiveType = PrimitiveType.BYTES)
	HashDigest getPreviousHash();

	@DataField(order=3, primitiveType = PrimitiveType.BYTES)
	HashDigest getLedgerHash();

	@DataField(order=4, primitiveType= PrimitiveType.INT64)
	long getHeight();

	@DataField(order=5, primitiveType = PrimitiveType.BYTES)
	HashDigest getTransactionSetHash();
	
	@DataField(order=6, primitiveType = PrimitiveType.INT64)
	long getTimestamp();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy