switch to externalized i2pkeys library

This commit is contained in:
idk
2022-03-10 00:54:43 -05:00
parent 25eb54b2bc
commit ca305ba46c
4 changed files with 10 additions and 2 deletions

View File

@ -13,6 +13,8 @@ import (
"strings"
"sync"
"time"
"github.com/eyedeekay/i2pkeys"
//samkeys "github.com/eyedeekay/goSam/compat"
)
@ -194,7 +196,7 @@ func (p *Client) ID() string {
// Addr returns the address of the client as a net.Addr
func (p *Client) Addr() net.Addr {
keys := I2PAddr(p.Destination())
keys := i2pkeys.I2PAddr(p.Destination())
return keys
}

1
go.mod
View File

@ -1,6 +1,7 @@
module github.com/eyedeekay/goSam
require (
github.com/eyedeekay/i2pkeys v0.0.0-20220310055120-b97558c06ac8
github.com/getlantern/fdcount v0.0.0-20210503151800-5decd65b3731 // indirect
github.com/getlantern/go-socks5 v0.0.0-20171114193258-79d4dd3e2db5
github.com/getlantern/golog v0.0.0-20201105130739-9586b8bde3a9 // indirect

4
go.sum
View File

@ -1,6 +1,10 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/eyedeekay/i2pkeys v0.0.0-20220310052025-204d4ae6dcae h1:SwegHeaf4pkDMB24UltIvJlj2+nd06QUZAbs8BDyfjM=
github.com/eyedeekay/i2pkeys v0.0.0-20220310052025-204d4ae6dcae/go.mod h1:W9KCm9lqZ+Ozwl3dwcgnpPXAML97+I8Jiht7o5A8YBM=
github.com/eyedeekay/i2pkeys v0.0.0-20220310055120-b97558c06ac8 h1:9QLD6ZWn1Evc0bT971aArjkit94+s5FMc2stDfEpen4=
github.com/eyedeekay/i2pkeys v0.0.0-20220310055120-b97558c06ac8/go.mod h1:W9KCm9lqZ+Ozwl3dwcgnpPXAML97+I8Jiht7o5A8YBM=
github.com/getlantern/context v0.0.0-20190109183933-c447772a6520 h1:NRUJuo3v3WGC/g5YiyF790gut6oQr5f3FBI88Wv0dx4=
github.com/getlantern/context v0.0.0-20190109183933-c447772a6520/go.mod h1:L+mq6/vvYHKjCX2oez0CgEAJmbq1fbb/oNJIWQkBybY=
github.com/getlantern/errors v1.0.1 h1:XukU2whlh7OdpxnkXhNH9VTLVz0EVPGKDV5K0oWhvzw=

View File

@ -1,6 +1,6 @@
package goSam
import (
/*import (
"crypto/sha256"
"errors"
"strings"
@ -111,3 +111,4 @@ func (c *Client) NewDestination(sigType ...string) (string, string, error) {
}
return priv, pub, nil
}
*/