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

Determine signing protocol #33

Open
bookmoons opened this issue Sep 20, 2018 · 1 comment
Open

Determine signing protocol #33

bookmoons opened this issue Sep 20, 2018 · 1 comment
Labels

Comments

@bookmoons
Copy link
Owner

There seem to be several specifics to the signing protocol. Some of them may be variable and need conformance.

Determine what needs conformance in the signing protocol. Document details in the protocol docs.

@bookmoons
Copy link
Owner Author

For signing, a packet is first encoded by protobuf to the undelimited wire format. The result is a sequence of bytes, in Python stored in a str value.

That string is passed to the electroncash.bitcoin.EC_KEY method sign_message:
https://github.com/fyookball/electrum/blob/2bda04f08f293beee5fcd68d8a8c185afeb77fa1/lib/bitcoin.py#L615

The compressed argument is False if a vk_from value starts with '04' (indicating a compressed key?), True otherwise.

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

No branches or pull requests

1 participant