tuweni / 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 - Path!: The file to read the key from.

Exceptions

IOException - On a filesystem error.

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

Return
SecretKey!: The private key.