mirror of
https://github.com/go-i2p/go-i2p.git
synced 2025-07-18 18:44:30 -04:00
added AsDestination()
This commit is contained in:
@@ -3,6 +3,7 @@ package router_identity
|
||||
|
||||
import (
|
||||
"github.com/go-i2p/go-i2p/lib/common/certificate"
|
||||
"github.com/go-i2p/go-i2p/lib/common/destination"
|
||||
"github.com/go-i2p/go-i2p/lib/common/key_certificate"
|
||||
. "github.com/go-i2p/go-i2p/lib/common/keys_and_cert"
|
||||
"github.com/go-i2p/go-i2p/lib/crypto"
|
||||
@@ -77,3 +78,9 @@ func NewRouterIdentity(publicKey crypto.PublicKey, signingPublicKey crypto.Signi
|
||||
|
||||
return &routerIdentity, nil
|
||||
}
|
||||
|
||||
func (router_identity *RouterIdentity) AsDestination() destination.Destination {
|
||||
return destination.Destination{
|
||||
KeysAndCert: router_identity.KeysAndCert,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user