Packages

  • package root
    Definition Classes
    root
  • package com
    Definition Classes
    root
  • package digitalasset
    Definition Classes
    com
  • package canton
    Definition Classes
    digitalasset
  • package ledger
    Definition Classes
    canton
  • package metering
    Definition Classes
    ledger
  • object Main

    The metering report validation app can be used to verify that a provided metering report is consistent with a check section within the report.

    The metering report validation app can be used to verify that a provided metering report is consistent with a check section within the report. When the report is created the check section is populated with a digest and a scheme that was used in the creation of that digest. Different schemes may be used by different release variants (e.g. community verses enterprise) and for different points in time.

    The app takes as parameters a directory that contains one file for each supported scheme and the report file to be verified. The scheme files need to contain JSON with fields for the scheme name digest algorithm and encoded key. For example:

    { "scheme": "community-2021", "algorithm": "HmacSHA256", "encoded": "ifKEd83-fAvOBTXnGjIVfesNzmWFKpo_35zpUnXEsg=" }

    Verification works by inspecting the scheme referenced in the report file and then checking that the recalculated digest matches that provided in the file.

    Usage: metering-verification-app <directory> <report>

    Definition Classes
    metering
  • Code
  • CodeDetail
  • ErrUsage
  • ExitCode
  • FailedToReadReport
  • FailedVerification
  • NoKeys
  • NotDirectory
  • NotFile
  • NotKeyFile

final case class FailedToReadReport(report: String, t: Throwable) extends Code with Product with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FailedToReadReport
  2. Serializable
  3. Product
  4. Equals
  5. Code
  6. ExitCode
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FailedToReadReport(report: String, t: Throwable)

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. val code: String
    Definition Classes
    CodeExitCode
  7. def detail: String
    Definition Classes
    FailedToReadReportExitCode
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def message: String
    Definition Classes
    ExitCode
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def productElementNames: Iterator[String]
    Definition Classes
    Product
  16. val report: String
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. val t: Throwable
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. 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
    Deprecated

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Code

Inherited from ExitCode

Inherited from AnyRef

Inherited from Any

Ungrouped