Overview
This node generates a cryptographic key pair using the Ed25519 algorithm. It is useful in scenarios where secure public-private key pairs are needed, such as for blockchain applications, secure communications, or cryptographic signing. For example, it can be used to create keys for user authentication or digital signatures.
Use Case Examples
- Generating a new key pair for a blockchain wallet.
- Creating keys for secure message encryption and decryption.
Output
JSON
publicKey- The generated public key as a string.privateKey- The generated private key as a string.
Dependencies
- near-api-js library for key pair generation
Troubleshooting
- If key generation fails, ensure the node environment supports cryptographic operations required by the Ed25519 algorithm.
- Errors during execution may include context about the item index to help identify which input caused the failure.
- Use the 'continue on fail' option to allow processing to continue even if key generation fails for some inputs.
Links
- NEAR API JS Key Pair Documentation - Official documentation for key pair generation using near-api-js library.