Skip to contents

Public keys are stored in the clear, so no password is needed (encrypting to someone needs only this).

Usage

morie_crypto_keystore_public_key(name, path = .morie_keystore_default_path())

Arguments

name

Identifier.

path

Keystore path.

Value

Raw vector, the public key.

Examples

path <- tempfile(fileext = ".keystore")
morie_crypto_keystore_create("pw", path = path)
morie_crypto_keystore_store("alice", pk = as.raw(1:32), sk = as.raw(1:64), password = "pw", path = path)
identical(morie_crypto_keystore_public_key("alice", path = path), as.raw(1:32))
#> [1] TRUE
unlink(path)