Generates one or more public/private key pairs. These keys are not stored in the node's wallet, so they must be kept secure by the user.
Arguments
- conn
A connection object created by
mc_connect.- count
Integer. Number of key pairs to generate. Default is
1.
Value
A data frame with three columns:
- address
The public address derived from the key pair.
- pubkey
The public key.
- privkey
The private key (keep this secret!).
See also
mc_get_new_address to create an address stored in the
wallet.
Other addresses:
mc_add_multisig_address(),
mc_create_multisig(),
mc_get_addresses(),
mc_get_new_address(),
mc_import_address(),
mc_list_addresses(),
mc_validate_address()
Examples
if (FALSE) { # \dontrun{
# Generate a single key pair
keys <- mc_create_keypairs(conn)
print(keys)
# Generate 5 key pairs
keys5 <- mc_create_keypairs(conn, count = 5)
} # }