Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
4ee3d392
Commit
4ee3d392
authored
Jan 23, 2015
by
Matt Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/ipfs: Added key size to 'ipfs init' output
parent
5589021a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cmd/ipfs/init.go
cmd/ipfs/init.go
+1
-1
test/sharness/t0020-init.sh
test/sharness/t0020-init.sh
+1
-1
No files found.
cmd/ipfs/init.go
View file @
4ee3d392
...
...
@@ -238,7 +238,7 @@ func identityConfig(nbits int) (config.Identity, error) {
return
ident
,
debugerror
.
New
(
"Bitsize less than 1024 is considered unsafe."
)
}
fmt
.
Printf
(
"generating key
pair..."
)
fmt
.
Printf
(
"generating
%v-bit RSA
keypair..."
,
nbits
)
sk
,
pk
,
err
:=
ci
.
GenerateKeyPair
(
ci
.
RSA
,
nbits
)
if
err
!=
nil
{
return
ident
,
err
...
...
test/sharness/t0020-init.sh
View file @
4ee3d392
...
...
@@ -36,7 +36,7 @@ test_expect_success "ipfs peer id looks good" '
test_expect_success
"ipfs init output looks good"
'
STARTHASH="QmYpv2VEsxzTTXRYX3PjDg961cnJE3kY1YDXLycHGQ3zZB" &&
echo "initializing ipfs node at $IPFS_PATH" >expected &&
echo "generating key
pair...done" >>expected &&
echo "generating
4096-bit RSA
keypair...done" >>expected &&
echo "peer identity: $PEERID" >>expected &&
printf "\\n%s\\n" "to get started, enter: ipfs cat $STARTHASH" >>expected &&
test_cmp expected actual_init
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment