base directory for key storage. Keys will be stored in keyDir/networkId/accountId.json
Store a KeyPair in an unencrypted file
The targeted network. (ex. default, betanet, etc…)
The NEAR account tied to the key pair
The key pair to store in local storage
This class is used to store keys on the file system.
See
https://docs.near.org/docs/develop/front-end/naj-quick-reference#key-store
Example