org.ergoplatform.appkit.PreHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ergo-appkit_2.11 Show documentation
Show all versions of ergo-appkit_2.11 Show documentation
A Library for Polyglot Development of Ergo Applications
The newest version!
package org.ergoplatform.appkit;
import sigma.Coll;
import sigma.GroupElement;
/**
* Only header fields that can be predicted by a miner.
*/
public interface PreHeader {
/**
* Block version, to be increased on every soft and hardfork.
*/
byte getVersion();
/**
* Id of parent block
*/
Coll getParentId();
/**
* Block timestamp (in milliseconds since beginning of Unix Epoch)
*/
long getTimestamp();
/**
* Current difficulty in a compressed view.
* NOTE: actually it is unsigned Int
*/
long getNBits();
/**
* Block height
*/
int getHeight();
/**
* Miner public key. Should be used to collect block rewards.
*/
GroupElement getMinerPk();
Coll getVotes();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy