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

KeyFileLoader

open class KeyFileLoader (source)

Utility class for loading scuttlebutt keys from the file system.

Functions

getLocalKeys

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

open static fun getLocalKeys(ssbFolder: Path!): KeyPair!

loadKeysFromFile

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

open static fun loadKeysFromFile(secretPath: Path!): KeyPair!