Commit 4ee3d392 authored by Matt Bell's avatar Matt Bell

cmd/ipfs: Added key size to 'ipfs init' output

parent 5589021a
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment