package validation
- Alphabetic
- Public
- Protected
Type Members
- 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
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)
- sealed abstract class TransactionAuthorizationError extends ValidationError
- case class TransactionCostConfig(baseCost: Long = 1, dataCostPerMB: Long = 1024, inputCost: Long = -1, outputCost: Long = 5, proofCostConfig: ProofCostConfig = ProofCostConfig()) extends Product with Serializable
Configuration values for individual cost components
Configuration values for individual cost components
- baseCost
a base value to pad to the transaction cost
- dataCostPerMB
cost per megabyte of data of the transaction's immutable bytes
- inputCost
base cost per each consumed input (consuming an input is a good thing) (proof costs are added on)
- outputCost
base cost for each new output
- proofCostConfig
configuration values for individual proofs
- sealed abstract class TransactionSyntaxError extends ValidationError
- abstract class ValidationError extends AnyRef
Value Members
- object Blake2b256DigestInterpreter
Validates that a Blake2b256 digest is valid.
- object ExtendedEd25519SignatureInterpreter
Validates that an Ed25519 signature is valid.
- object Sha256DigestInterpreter
Validates that a Sha256 digest is valid.
- object TransactionAuthorizationError
- object TransactionAuthorizationInterpreter
Validates that each Input within a Transaction is properly "authorized".
Validates that each Input within a Transaction is properly "authorized". "Authorized" simply means "does the given Proof satisfy the given Proposition?".
- object TransactionCostCalculatorInterpreter
- object TransactionSyntaxError
- object TransactionSyntaxInterpreter