Skip to content

Add test vectors for message encoding #258

@pirapira

Description

@pirapira

This issue keeps track of considering the idea of adding test vectors for message encoding.

When this idea is implemented, the spec will contain for each message test cases for encoding and decoding.

A test case for encoding would look like:

LockedTransfer(field1=value1, ..., fieldN=valueN) with private key 0x....... is encoded as 0x........

A test case for decoding would look like:

The byte sequence 0x...... is decoded as LockedTransfer(field1=vaue1, ..., fieldN=valueN) signed by address 0x.......

@kelsos has a script that's useful for generating the encoding test vectors. https://github.com/kelsos/raiden-protocol-messages/blob/master/messages/messages.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions