crypto / org.apache.tuweni.crypto / SECP256K1 / SecretKey / load

load

open static fun load(file: Path): SecretKey (source)

Load a private key from a file.

Parameters

file - The file to read the key from.

Exceptions

IOException - On a filesystem error.

InvalidSEC256K1SecretKeyStoreException - If the file does not contain a valid key.

Return
The private key.