mirror of
https://github.com/logos-messaging/go-noise.git
synced 2026-01-04 22:13:14 +00:00
feat: add functions to retrieve h,e,rs,re
This commit is contained in:
parent
aedffc51a8
commit
daf3130edf
20
handshake.go
20
handshake.go
@ -284,6 +284,22 @@ func (h *Handshake) FinalizeHandshake() (*HandshakeResult, error) {
|
||||
}
|
||||
|
||||
// HandshakeComplete indicates whether the handshake process is complete or not
|
||||
func (hs *Handshake) IsComplete() bool {
|
||||
return hs.hsResult != nil
|
||||
func (h *Handshake) IsComplete() bool {
|
||||
return h.hsResult != nil
|
||||
}
|
||||
|
||||
func (h *Handshake) LocalEphemeralKeypair() Keypair {
|
||||
return h.hs.e
|
||||
}
|
||||
|
||||
func (h *Handshake) RemoteStaticPublicKey() []byte {
|
||||
return h.hs.rs
|
||||
}
|
||||
|
||||
func (h *Handshake) RemoteEphemeralPublicKey() []byte {
|
||||
return h.hs.re
|
||||
}
|
||||
|
||||
func (h *Handshake) H() []byte {
|
||||
return h.hs.ss.h
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user