Merge pull request #591 from AdamISZ/master

Fix trivial comment errors in noise.go
This commit is contained in:
Johan T. Halseth 2018-01-19 14:47:22 +01:00 committed by GitHub
commit cb7699068b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -350,7 +350,7 @@ type Machine struct {
// NewBrontideMachine creates a new instance of the brontide state-machine. If
// the responder (listener) is creating the object, then the remotePub should
// be nil. The handshake state within brontide is initialized using the ascii
// string "bitcoin" as the prologue. The last parameter is a set of variadic
// string "lightning" as the prologue. The last parameter is a set of variadic
// arguments for adding additional options to the brontide Machine
// initialization.
func NewBrontideMachine(initiator bool, localPub *btcec.PrivateKey,
@ -627,7 +627,7 @@ func (b *Machine) RecvActThree(actThree [ActThreeSize]byte) error {
}
// split is the final wrap-up act to be executed at the end of a successful
// three act handshake. This function creates to internal cipherState
// three act handshake. This function creates two internal cipherState
// instances: one which is used to encrypt messages from the initiator to the
// responder, and another which is used to encrypt message for the opposite
// direction.