work on router address and router info

This commit is contained in:
Hayden Parker
2016-02-07 02:54:02 -08:00
parent d1699e946e
commit 1af45068d4
10 changed files with 219 additions and 105 deletions

View File

@ -6,15 +6,15 @@ import (
type RouterIdentity []byte
func (router_identity RouterIdentity) PublicKey() (key crypto.ElgPublicKey) {
func (router_identity RouterIdentity) PublicKey() (crypto.ElgPublicKey, error) {
return KeysAndCert(router_identity).PublicKey()
}
func (router_identity RouterIdentity) SigningPublicKey() (key crypto.SigningPublicKey) {
func (router_identity RouterIdentity) SigningPublicKey() (crypto.SigningPublicKey, error) {
return KeysAndCert(router_identity).SigningPublicKey()
}
func (router_identity RouterIdentity) Certificate() (cert Certificate) {
func (router_identity RouterIdentity) Certificate() (Certificate, error) {
return KeysAndCert(router_identity).Certificate()
}