Skip to content

Figure out the sender of a transaction #422

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

Open
3 tasks
pirapira opened this issue Jun 21, 2017 · 0 comments
Open
3 tasks

Figure out the sender of a transaction #422

pirapira opened this issue Jun 21, 2017 · 0 comments
Assignees

Comments

@pirapira
Copy link
Owner

In the blockchaintest format, a transaction is specified as

                   {
                        "data" : "0x7065cb48000000000000000000000000aaaf5374fce5edbc8e2a8697c15331677e6ebaaa",
                        "gasLimit" : "0x989680",
                        "gasPrice" : "0x01",
                        "nonce" : "0x01",
                        "r" : "0x81b347124f5a88c2e04509723f18984b91020bddbd74c982c651856727b5fa0d",
                        "s" : "0x41d1c0ef7309812cb795a5c86c462db176d8f782a8babbeb61ca715a49620504",
                        "to" : "0x6295ee1b4f6dd65047762f924ecd367c17eabf8f",
                        "v" : "0x1b",
                        "value" : "0x64"
                    }

The sender of the transaction needs to be computed from here.

This involves ECDSARECOVER operation.

  • look for an implementation in OCaml
  • use the OCaml implementation in blockchain test
  • prepare a lem implementation
@pirapira pirapira self-assigned this Jun 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant