Returns the plain string held by a tailcat_secret, for the places where an application means to show or pass on an address or key, such as printing a server's address once for the user to copy, or putting it into a message. It is the explicit form of as.character(), so the intent is visible in the code. To pass an address through a file, use tailcat_address_write().
Arguments
- x
A tailcat_secret, or a plain character vector, which is returned unchanged.
Examples
keys = tailcat_keygen()
keys$private_key
#> <tailcat_secret> <redacted>
nchar(tailcat_reveal(keys$private_key)) > 0
#> [1] TRUE