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 mpe_address to GetChannelState authentication #287

Closed
astroseger opened this issue Jun 10, 2019 · 0 comments
Closed

add mpe_address to GetChannelState authentication #287

astroseger opened this issue Jun 10, 2019 · 0 comments

Comments

@astroseger
Copy link
Collaborator

We should add mpe_address to the message in GetChannelState authentication.

So the client should sign the following message: __get_channel_state , mpe_address, Channel ID, Current block

In state_service.go in GetChannelState function we should compose the message as following:

    message := bytes.Join([][]byte{
        []byte("__get_channel_state"),
        service.serviceMetaData.GetMpeAddress().Bytes(),
        bigIntToBytes(channelID),
        abi.U256(big.NewInt(int64(request.CurrentBlock))),
    }, nil)
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Jun 10, 2019
Add mpe_address to GetChannelState authentication
anandrgitnirman pushed a commit to anandrgitnirman/snet-daemon that referenced this issue Jun 10, 2019
raamb added a commit that referenced this issue Jun 12, 2019
#287, Add mpe_address to GetChannelState authentication
@raamb raamb closed this as completed Jun 14, 2019
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

2 participants