Module convex.core
Package convex.core

Class Constants

java.lang.Object
convex.core.Constants

public class Constants extends Object
Static class for global configuration constants that affect protocol behaviour
  • Field Details

    • INITIAL_TIMESTAMP

      public static final long INITIAL_TIMESTAMP
      Initial timestamp for new States
    • INITIAL_JUICE_PRICE

      public static final long INITIAL_JUICE_PRICE
      Juice price in the initial Genesis State
      See Also:
    • INITIAL_MEMORY_POOL

      public static final long INITIAL_MEMORY_POOL
      Initial memory Pool of 1mb
      See Also:
    • INITIAL_MEMORY_PRICE

      public static final long INITIAL_MEMORY_PRICE
      Initial memory price per byte 0.001 Convex Gold
      See Also:
    • MEMORY_POOL_GROWTH

      public static final long MEMORY_POOL_GROWTH
      Memory Pool of growth increment 40kb / hour i.e. approx. 1mb per day
      See Also:
    • MEMORY_POOL_GROWTH_INTERVAL

      public static final long MEMORY_POOL_GROWTH_INTERVAL
      Memory Pool of growth interval (once per hour). This means regular price drops in memory pool
      See Also:
    • MAX_TRANSACTION_JUICE

      public static final long MAX_TRANSACTION_JUICE
      Max juice allowable during execution of a single transaction.
      See Also:
    • MAX_TRANSACTIONS_PER_BLOCK

      public static final int MAX_TRANSACTIONS_PER_BLOCK
      Max transactions in a legal Block.
      See Also:
    • ETCH_DELETE_TEMP_ON_EXIT

      public static final boolean ETCH_DELETE_TEMP_ON_EXIT
      Constant to set deletion of Etch temporary files on exit. Probably should be true, unless you want to dubug temp files.
      See Also:
    • INITIAL_SEQUENCE

      public static final long INITIAL_SEQUENCE
      Sequence number used for any new account
      See Also:
    • INITIAL_FEES

      public static final long INITIAL_FEES
      Initial fees in global state
      See Also:
    • MEMORY_OVERHEAD

      public static final long MEMORY_OVERHEAD
      Size in bytes of constant overhead applied per non-embedded Cell in memory accounting
      See Also:
    • MAX_SUPPLY

      public static final long MAX_SUPPLY
      Maximum supply of Convex Coins set at protocol level
      See Also:
    • MAX_DEPTH

      public static final int MAX_DEPTH
      Maximum CVM execution depth
      See Also:
    • INITIAL_GLOBALS

      public static final AVector<ACell> INITIAL_GLOBALS
      Initial global values for a new State
    • MAX_NAME_LENGTH

      public static final int MAX_NAME_LENGTH
      Maximum length of a symbolic name in bytes (keywords and symbols) Note: Chosen so that small qualified symbolic values are always embedded
      See Also:
    • SET_INCLUDED

      public static final CVMBool SET_INCLUDED
      Value used to indicate inclusion of a key in a Set. Must be a singleton instance
    • SET_EXCLUDED

      public static final CVMBool SET_EXCLUDED
      Value used to indicate exclusion of a key from a Set. Must be a singleton instance
    • KEY_LENGTH

      public static final int KEY_LENGTH
      Length for public keys
      See Also:
    • HASH_LENGTH

      public static final int HASH_LENGTH
      Length for Hash values
      See Also:
    • OPT_STATIC

      public static final boolean OPT_STATIC
      Option for static compilation support. Set to true for static inlines on core
      See Also:
    • BAD_CHARACTER

      public static final char BAD_CHARACTER
      Char to represent bad Unicode characters in printing
      See Also:
    • BAD_CHARACTER_BYTES

      public static final byte[] BAD_CHARACTER_BYTES
    • BAD_CHARACTER_STRING

      public static final String BAD_CHARACTER_STRING
    • BAD_CHARACTER_UTF

      public static final byte[] BAD_CHARACTER_UTF
    • DEFAULT_PEER_PORT

      public static final int DEFAULT_PEER_PORT
      Default port for Convex Peers
      See Also:
    • MAX_BIG_INTEGER_LENGTH

      public static final int MAX_BIG_INTEGER_LENGTH
      See Also:
    • OMIT_VALIDATION_STACKTRACES

      public static final boolean OMIT_VALIDATION_STACKTRACES
      Flag to omit filling in stack traces on validation exceptions. This helps performance against DoS attacks
      See Also:
    • PBE_ITERATIONS

      public static final int PBE_ITERATIONS
      See Also:
    • DEFAULT_KEYSTORE_FILENAME

      public static final String DEFAULT_KEYSTORE_FILENAME
      See Also:
    • LOOKUP_DEPTH

      public static final int LOOKUP_DEPTH
      Maximum depth of lookups via parent accounts
      See Also:
    • CHAIN_CODE

      public static final int CHAIN_CODE
      SLIP-44 Chain code for Convex CVM Convex Coin is coin type 864 in SLIP-0044 : https://github.com/satoshilabs/slips/blob/master/slip-0044.md
      See Also:
    • DEFAULT_BIP39_PATH

      public static final String DEFAULT_BIP39_PATH
      Default derivation path for Convex keys
      See Also:
  • Constructor Details

    • Constants

      public Constants()