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

Peer authentication sender #3771

Merged
merged 5 commits into from
Feb 11, 2022
Merged

Conversation

iulianpascalau
Copy link
Contributor

  • added peer authentication sender
  • added routineHandler & timerWrapper sub-components
  • renamed some interfaces, stub implementations and errors

iulianpascalau and others added 3 commits February 8, 2022 22:35
- added routineHandler & timerWrapper sub-components
- renamed some interfaces, stub implementations and errors
pkBytes, _ := sender.publicKey.ToByteArray()
log.Info("args", "pid", args.Messenger.ID().Pretty(), "bls sk", skBytes, "bls pk", pkBytes)

// verify the received bytes if they can be converted in a valid peer authentication message
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can transform these comments into t.Run("description")

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can be done, sure

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

dragos-rebegea
dragos-rebegea previously approved these changes Feb 9, 2022
sstanculeanu
sstanculeanu previously approved these changes Feb 10, 2022

const minTimeBetweenSends = time.Second

// ArgPeerAuthenticationSender represents the arguments for the heartbeat sender
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// ArgPeerAuthenticationSender represents the arguments for the heartbeat sender
// ArgPeerAuthenticationSender represents the arguments for the peer authentication sender

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@sstanculeanu sstanculeanu merged commit 7a9617d into feat/heartbeat-v2 Feb 11, 2022
@sstanculeanu sstanculeanu deleted the peer-authentication-sender branch February 11, 2022 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants