Skip to content

bip: test vector creation  #302

Closed
@Roasbeef

Description

@Roasbeef

One final thing we want to do before we request the final BIP number sis request test vectors for all the relevant sub-BIPs.

I think one way we can automate a lot of this is leverage our existing TDD tests: they're all already induvidual test vectors, so we can add a new -json flag to output them in a formatted JSON output (written to a file).

This is a master tracking issue to keep track of all the test vectors we'd want to add:

Test Vector Checklist

  • asset TLV encoding

  • addr encoding

  • proof file encoding

  • VPSBT encoding

  • positive + negative tests for VM validation

  • positive + negative tests for proof validation

  • MS-SMT tree tests

    • creation from canned leaf (hash check to match)
    • overflow detection
    • proof compression + decompression
    • inclusion proof validation
    • exclusion proof validation

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions