mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-01 22:02:46 +00:00
Fix tiebreak in Yggdrasil demo (uses wrong key)
This commit is contained in:
parent
ce2517b9fb
commit
89d61c4877
2 changed files with 6 additions and 2 deletions
|
@ -128,6 +128,10 @@ func (n *Node) DerivedServerName() string {
|
|||
return hex.EncodeToString(n.SigningPublicKey())
|
||||
}
|
||||
|
||||
func (n *Node) DerivedSessionName() string {
|
||||
return hex.EncodeToString(n.EncryptionPublicKey())
|
||||
}
|
||||
|
||||
func (n *Node) EncryptionPublicKey() []byte {
|
||||
edkey := n.SigningPublicKey()
|
||||
return convert.Ed25519PublicKeyToCurve25519(edkey)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue