Packages

class ErgoInterpreter extends ErgoLikeInterpreter with ScorexLogging

ErgoTree language interpreter, Ergo version. In addition to ErgoLikeInterpreter, it contains rules for expired boxes spending validation.

Linear Supertypes
ScorexLogging, StrictLogging, ErgoLikeInterpreter, Interpreter, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErgoInterpreter
  2. ScorexLogging
  3. StrictLogging
  4. ErgoLikeInterpreter
  5. Interpreter
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ErgoInterpreter(params: BlockchainParameters)

    params

    - current values of adjustable blockchain settings

Type Members

  1. type CTX = ErgoLikeContext
    Definition Classes
    ErgoInterpreter → ErgoLikeInterpreter → Interpreter
  2. type ProofT = UncheckedTree
    Definition Classes
    Interpreter

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val CostPerByteDeserialized: Int
    Definition Classes
    Interpreter
  5. val CostPerTreeByte: Int
    Definition Classes
    Interpreter
  6. def addCryptoCost(reductionRes: SigmaBoolean, baseCost: Long, costLimit: Long): Long
    Attributes
    protected
    Definition Classes
    Interpreter
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. def checkExpiredBox(box: ErgoBox, output: ErgoBoxCandidate, currentHeight: Height): Boolean

    Checks that expired box is spent in a proper way

    Checks that expired box is spent in a proper way

    box

    - box being spent

    output

    - newly created box when storage fee covered, otherwise any output box

    currentHeight

    - current height of the blockchain (at the moment of spending)

    returns

    whether the box is spent properly according to the storage fee rule

    Attributes
    protected
  9. def checkSoftForkCondition(ergoTree: ErgoTree, context: CTX): Option[VerificationResult]
    Attributes
    protected
    Definition Classes
    Interpreter
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. val computeCommitments: Strategy
    Definition Classes
    Interpreter
  12. def deserializeMeasured(context: CTX, scriptBytes: Array[Byte]): (CTX, Value[SType])
    Attributes
    protected
    Definition Classes
    Interpreter
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. def evalSettings: EvalSettings
    Attributes
    protected
    Definition Classes
    Interpreter
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  17. def fullReduction(ergoTree: ErgoTree, ctx: CTX): ReductionResult
    Definition Classes
    Interpreter
  18. def fullReduction(ergoTree: ErgoTree, ctx: CTX, env: ScriptEnv): ReductionResult
    Definition Classes
    Interpreter
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. def log: Logger
    Attributes
    protected
    Definition Classes
    ScorexLogging
    Annotations
    @inline()
  23. def logMessage(msg: String, t: Throwable): Unit
    Attributes
    protected
    Definition Classes
    ErgoInterpreter → Interpreter
  24. def logMessage(msg: String): Unit

    Override default logging for all Ergo interpreters.

    Override default logging for all Ergo interpreters.

    Attributes
    protected
    Definition Classes
    ErgoInterpreter → Interpreter
  25. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  26. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. def propositionFromErgoTree(ergoTree: ErgoTree, context: CTX): SigmaPropValue
    Attributes
    protected
    Definition Classes
    Interpreter
  30. def reduceToCryptoJITC(context: CTX, exp: SigmaPropValue): Try[ReductionResult]
    Attributes
    protected
    Definition Classes
    Interpreter
  31. def substDeserialize(context: CTX, updateContext: (CTX) => Unit, node: SValue): Option[SValue]
    Definition Classes
    ErgoLikeInterpreter → Interpreter
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toString(): String
    Definition Classes
    AnyRef → Any
  34. def verify(env: ScriptEnv, exp: ErgoTree, context: CTX, proof: Array[Byte], message: Array[Byte]): Try[VerificationResult]

    Checks that given exp evaluates to true.

    Checks that given exp evaluates to true.

    env

    - environment to use during expression evaluation

    exp

    - expression to check

    context

    - expression evaluation context

    proof

    - cryptographic proof

    message

    - message

    Definition Classes
    ErgoInterpreter → Interpreter
  35. def verify(ergoTree: ErgoTree, context: CTX, proof: ProofT, message: Array[Byte]): Try[VerificationResult]
    Definition Classes
    Interpreter
  36. def verify(env: ScriptEnv, ergoTree: ErgoTree, context: CTX, proverResult: ProverResult, message: Array[Byte]): Try[VerificationResult]
    Definition Classes
    Interpreter
  37. def verify(ergoTree: ErgoTree, context: CTX, proverResult: ProverResult, message: Array[Byte]): Try[VerificationResult]
    Definition Classes
    Interpreter
  38. def verifySignature(sigmaTree: SigmaBoolean, message: Array[Byte], signature: Array[Byte])(implicit E: CErgoTreeEvaluator): Boolean
    Definition Classes
    Interpreter
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from ScorexLogging

Inherited from StrictLogging

Inherited from ErgoLikeInterpreter

Inherited from Interpreter

Inherited from AnyRef

Inherited from Any

Ungrouped