Skip to content

open-web3-stack/jamtestvectors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test Vectors for the JAM Protocol

Codec

State Transition Functions

We offer two types of test vectors:

  • Tiny: designed for quick adjustments and prototyping, with reduced

    • validators count: 6
    • cores count: 2
    • epoch period: 12
    • core assignment rotation period: 4
    • ticket attempts: 3
  • Full: vectors with production specs

    • validators count: 1023
    • cores count: 341
    • epoch period: 600
    • core assignment rotation period: 10
    • ticket attempts: 2

For more information refer to the community docs.

STF Output

Technically, the STF execution process does not inherently produce auxiliary outputs beyond the success or failure result. In this context, we propose an extension to include additional information that may be beneficial for implementors or useful for executing other subsystems reliant on values generated post-STF execution.

When the error or success values are not pertinent to your test vector processing procedures, you may disregard them as necessary.

A mapping of error code semantics is provided within the ASN.1 schema for each specific subsystem.

Vectors

Block Import Traces

  • Fallback: fallback block authoring, no-safrole, no-work-reports
  • Safrole: safrole block authoring, no-work-reports
  • Work Reports L0: basic work reports, no-safrole

Vectors Validation

Validation scripts are included to verify the JSON files against the expected ASN.1 syntax provided with the test vectors. These scripts currently rely on my asn1tools fork.

About

The latest test vectors for JAM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.4%
  • Rust 3.2%
  • Shell 0.4%