Skip to contents

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.

Usage

mc_create_keypairs(conn, count = 1)

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!).

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)
} # }