
Public key of a key pair in the morie keystore
Source:R/crypto_keystore.R
morie_crypto_keystore_public_key.RdPublic keys are stored in the clear, so no password is needed (encrypting to someone needs only this).
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)