c

co.topl.brambl.validation

ProofCostConfig

case class ProofCostConfig(txBindCost: Long = 50, emptyCost: Long = 1, lockedCost: Long = 1, digestCost: Long = 50, digitalSignatureCost: Long = 100, heightRangeCost: Long = 5, tickRangeCost: Long = 5, exactMatchCost: Long = 10, lessThanCost: Long = 10, greaterThanCost: Long = 10, equalToCost: Long = 10, thresholdCost: Long = 1, andCost: Long = 1, orCost: Long = 1, notCost: Long = 1) extends Product with Serializable

Configuration values for individual proof cost components

txBindCost

The cost to verify a TxBind (hash verification)

emptyCost

The cost to verify an empty proof

lockedCost

The cost to verify a locked proof

digestCost

The cost to verify a digest/hash

digitalSignatureCost

The cost to verify a digital signature (likely EC)

heightRangeCost

The cost to verify a height range (probably cheap, statically provided value)

tickRangeCost

The cost to verify a tick range (probably cheap, statically provided value)

exactMatchCost

The cost to verify an exact match (probably cheap, lookup function)

lessThanCost

The cost to verify a less than (probably cheap, lookup function)

greaterThanCost

The cost to verify a greater than (probably cheap, lookup function)

equalToCost

The cost to verify an equal to (probably cheap, lookup function)

thresholdCost

The base cost to verify a threshold (recursive calls will be added)

andCost

The base cost to verify an and (recursive calls will be added)

orCost

The base cost to verify an or (recursive calls will be added)

notCost

The base cost to verify a not (recursive call will be added)

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProofCostConfig
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ProofCostConfig(txBindCost: Long = 50, emptyCost: Long = 1, lockedCost: Long = 1, digestCost: Long = 50, digitalSignatureCost: Long = 100, heightRangeCost: Long = 5, tickRangeCost: Long = 5, exactMatchCost: Long = 10, lessThanCost: Long = 10, greaterThanCost: Long = 10, equalToCost: Long = 10, thresholdCost: Long = 1, andCost: Long = 1, orCost: Long = 1, notCost: Long = 1)

    txBindCost

    The cost to verify a TxBind (hash verification)

    emptyCost

    The cost to verify an empty proof

    lockedCost

    The cost to verify a locked proof

    digestCost

    The cost to verify a digest/hash

    digitalSignatureCost

    The cost to verify a digital signature (likely EC)

    heightRangeCost

    The cost to verify a height range (probably cheap, statically provided value)

    tickRangeCost

    The cost to verify a tick range (probably cheap, statically provided value)

    exactMatchCost

    The cost to verify an exact match (probably cheap, lookup function)

    lessThanCost

    The cost to verify a less than (probably cheap, lookup function)

    greaterThanCost

    The cost to verify a greater than (probably cheap, lookup function)

    equalToCost

    The cost to verify an equal to (probably cheap, lookup function)

    thresholdCost

    The base cost to verify a threshold (recursive calls will be added)

    andCost

    The base cost to verify an and (recursive calls will be added)

    orCost

    The base cost to verify an or (recursive calls will be added)

    notCost

    The base cost to verify a not (recursive call will be added)

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 andCost: Long
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  7. val digestCost: Long
  8. val digitalSignatureCost: Long
  9. val emptyCost: Long
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. val equalToCost: Long
  12. val exactMatchCost: Long
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. val greaterThanCost: Long
  15. val heightRangeCost: Long
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. val lessThanCost: Long
  18. val lockedCost: Long
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. val notCost: Long
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  23. val orCost: Long
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. val thresholdCost: Long
  27. val tickRangeCost: Long
  28. val txBindCost: Long
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped