use 2048 keys everywhere else

This commit is contained in:
Steven Allen 2019-08-23 14:36:42 -07:00
parent 0871fa3779
commit a2a70d2cc0
5 changed files with 5 additions and 6 deletions

View File

@ -113,8 +113,8 @@ func main() {
}
func setupPeer(a args) (peer.ID, pstore.Peerstore, error) {
if a.keybits < 1024 {
return "", nil, errors.New("bitsize less than 1024 is considered unsafe")
if a.keybits < 2048 {
return "", nil, errors.New("bitsize less than 2048 is considered unsafe")
}
out("generating key pair...")

1
go.mod
View File

@ -109,7 +109,6 @@ require (
go4.org v0.0.0-20190313082347-94abd6928b1d // indirect
golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 // indirect
google.golang.org/appengine v1.4.0 // indirect
gopkg.in/cheggaaa/pb.v1 v1.0.28
gotest.tools/gotestsum v0.3.4
)

View File

@ -1,6 +1,6 @@
FROM zaqwsx_ipfs-test-img
RUN ipfs init -b=1024
RUN ipfs init -b=2048
ADD . /tmp/id
RUN mv -f /tmp/id/config /root/.ipfs/config
RUN ipfs id

View File

@ -1,6 +1,6 @@
FROM zaqwsx_ipfs-test-img
RUN ipfs init -b=1024
RUN ipfs init -b=2048
ADD . /tmp/id
RUN mv -f /tmp/id/config /root/.ipfs/config
RUN ipfs id

View File

@ -1,6 +1,6 @@
FROM zaqwsx_ipfs-test-img
RUN ipfs init -b=1024
RUN ipfs init -b=2048
ADD . /tmp/test
RUN mv -f /tmp/test/config /root/.ipfs/config
RUN ipfs id