TorProvider now monitors tor process status and can graceully handle it going away and reappearing, or relaunch it #39
|
@ -73,8 +73,7 @@ func PrivateKeyToString(privateKey *rsa.PrivateKey) string {
|
|||
|
||||
// return an onion address from a private key
|
||||
func GetOnionAddress(privateKey *rsa.PrivateKey) (string, error) {
|
||||
pubKey := rsa.PublicKey(privateKey.PublicKey)
|
||||
addr, err := pkcs1.OnionAddr(&pubKey)
|
||||
addr, err := pkcs1.OnionAddr(&privateKey.PublicKey)
|
||||
if err != nil {
|
||||
return "", err
|
||||
} else if addr == "" {
|
||||
|
|
Reference in New Issue