base directory for key storage. Keys will be stored in keyDir/networkId/accountId.json
Deletes all unencrypted files from the keyDir
path.
Gets the account(s) files in keyDir/networkId
The targeted network. (ex. default, betanet, etc…)
Gets a KeyPair from an unencrypted file
The targeted network. (ex. default, betanet, etc…)
The NEAR account tied to the key pair
Get the network(s) from files in keyDir
Deletes an unencrypted file holding a KeyPair
The targeted network. (ex. default, betanet, etc…)
The NEAR account tied to the key pair
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