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

org.ergoplatform.appkit.PreHeader Maven / Gradle / Ivy

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