scuttlebutt-client-lib / org.apache.tuweni.scuttlebutt.lib / KeyFileLoader

KeyFileLoader

open class KeyFileLoader (source)

Utility class for loading scuttlebutt keys from the file system.

Constructors

<init>

KeyFileLoader()

Utility class for loading scuttlebutt keys from the file system.

Functions

getLocalKeys

open static fun getLocalKeys(): KeyPair

Attempts to load the keys from the default scuttlebutt directory (~/.ssb), and throws an exception if the keys are not available at the given path

loadKeysFromFile

open static fun loadKeysFromFile(secretPath: String): KeyPair

Attempts to load the scuttlebutt secret key with the supplied file path