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

This commit is contained in:
Matt Bell 2015-01-23 19:14:51 -08:00
parent 5589021a1d
commit 4ee3d39253
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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