Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test vectors for message encoding #258

Open
pirapira opened this issue Sep 4, 2019 · 0 comments
Open

Add test vectors for message encoding #258

pirapira opened this issue Sep 4, 2019 · 0 comments

Comments

@pirapira
Copy link
Contributor

pirapira commented Sep 4, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant