mirror of
https://github.com/logos-messaging/noise.git
synced 2026-01-07 16:43:05 +00:00
Add a getter for handshake msgIdx (#27)
This commit is contained in:
parent
01638cb52d
commit
953535c65f
5
state.go
5
state.go
@ -490,3 +490,8 @@ func (s *HandshakeState) ChannelBinding() []byte {
|
|||||||
func (s *HandshakeState) PeerStatic() []byte {
|
func (s *HandshakeState) PeerStatic() []byte {
|
||||||
return s.rs
|
return s.rs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MessageIndex returns the current handshake message id
|
||||||
|
func (s *HandshakeState) MessageIndex() int {
|
||||||
|
return s.msgIdx
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user