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 (0.6.7)

Classes

Binary To JSON

The repository binary test vector files can be converted to their JSON equivalents for easier inspection and debugging. Use the provided conversion script to transform binary files into human-readable JSON format:

./scripts/convert-all.sh

This script requires the jam-types Python library to be installed.

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.

./scripts/validate-all.sh.sh

Chainspec Parameters

For more information refer to the community docs.

Tiny

chain: tiny
num_validators: 6
num_cores: 2
preimage_expunge_period: 32
slot_duration: 6
epoch_duration: 12
contest_duration: 10
tickets_per_validator: 3
max_tickets_per_extrinsic: 3
rotation_period: 4
num_ec_pieces_per_segment: 1026
max_block_gas: 20000000
max_refine_gas: 1000000000

Full

All parameters here must match the Gray Paper.

chain: full
num_validators: 1023
num_cores: 341
preimage_expunge_period: 19200
slot_duration: 6
epoch_duration: 600
contest_duration: 500
tickets_per_validator: 2
max_tickets_per_extrinsic: 16
rotation_period: 10
num_ec_pieces_per_segment: 6
max_block_gas: 3500000000
max_refine_gas: 5000000000

About

The latest test vectors for JAM.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.1%
  • Shell 3.9%