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

load

open static fun load(file: Path!): KeyPair! (source)

Load a key pair from a path.

Parameters

file - Path!: The file containing a private key.

Exceptions

IOException - On a filesystem error.

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

Return
KeyPair!: The key pair.