tuweni / org.apache.tuweni.wallet / Wallet / create

create

fun create(file: Path, password: String): Wallet (source)

Creates a new wallet with that file, generating a private key and encrypting it with the password passed in.

Parameters

file - the file to create. If a file is present, it is rewritten.

password - the password to encrypt the wallet with

Return
the wallet created