Identities in SORA
Identities are a crucial component of your Stellar workflow in SORA. They represent the accounts you use to interact with the Stellar network, providing a user-friendly interface to manage your Stellar keys and addresses.
SHOWCASE CLIP
New to SORA? Check out our Identities showcase clip to see how to create, manage, and use your Stellar identities in SORA!
Identities Dashboard
Central hub for managing Stellar identities in SORA.
The Identities dashboard provides an overview of all your Stellar identities. Here's what you'll find:
- Identity List: Displays all your identities with color-coded icons and names.
- Identity Count: Shows the total number of identities you have.
- Search Bar: Allows you to quickly find specific identities.
- Create New Identity: A button to initiate the identity creation process.
WARNING
Always keep your identity information, especially private keys and seed phrases, secure and confidential.
Generating a New Identity
To generate a new identity:
- Click the "Create New Identity" button in the top right corner.
- Select the "Generate Identity" tab in the modal that appears.
- Fill in the following details:
- Identity Name: Enter a name for your new identity.
- Network Passphrase: Enter the network passphrase.
- Network: Select the network (e.g., Public, Testnet, Futurenet).
- RPC URL: Enter the RPC URL for the selected network.
- (Optional) Expand the "Options" section to configure advanced settings:
- Seed: Specify a custom seed for key generation.
- HD Path: Set a custom HD derivation path.
- As Secret: Output the generated identity as a secret key.
- Global: Use global config.
- Default Seed: Generate the default seed phrase (useful for testing).
- Click "Create" to generate your new identity.
INFO
Generating a new identity creates a new Stellar account with a unique public and private key pair.
Adding an Existing Identity
To add an existing identity:
- Click the "Create New Identity" button.
- Select the "Add Identity" tab in the modal.
- Provide the following information:
- Identity Name: Enter a name for your identity.
- Seed Phrase: Enter your 12-word seed phrase.
- Secret Key: Enter your secret key.
- (Optional) Expand the "Options" section to configure:
- Global: Use global config.
- Config Directory: Specify a custom config directory for testing.
- Click "Add" to import your existing identity.
Funding an Identity
For testing purposes, you can fund an identity on test networks:
- Click the "Fund" button next to an identity.
- Enter the following details:
- Network Name: e.g., "Futurenet" or "Testnet".
- Network Passphrase: The passphrase for the selected network.
- RPC URL: The RPC endpoint for the network.
- (Optional) Configure additional options like HD Path or using global config.
- Click "Fund" to add test funds to your identity.
WARNING
Funding is only available on test networks and should not be used on the public Stellar network.
Removing an Identity
To remove an identity from SORA:
- Click the "Remove" button next to an identity.
- Confirm the identity name.
- (Optional) Configure options like using global config or specifying a config directory.
- Click "Remove" to delete the identity from SORA.
IMPORTANT
Be cautious when removing identities, especially if they hold real assets. This action cannot be undone.
Viewing Identity Details
SORA allows you to view detailed information about each identity:
- Click the "Info" button next to an identity.
- A dialog will show the identity's:
- Private Key: The secret key for the identity.
- Public Address: The public Stellar address.
WARNING
Never share your private key. Keep it secure at all times.
Using Identities in Soroban Development
Identities in SORA are essential for interacting with the Soroban smart contract platform(1):
- Contract Deployment: Use your identity to sign and deploy smart contracts to the Stellar network.
- Contract Invocation: Interact with deployed contracts using your identity for authentication.
- Asset Management: Create and manage custom assets on the Stellar network.
- Testing: Utilize different identities to simulate various user interactions with your contracts.
Tips for Efficient Use
- Use Descriptive Names: Choose clear, unique names for your identities to easily distinguish between them.
- Regular Backups: Always keep secure backups of your seed phrases and private keys.
- Test Network Usage: Use test networks for development and testing to avoid risking real assets.
- Identity Organization: Use the search function to quickly find specific identities as your list grows.
- Network-Specific Identities: Consider creating separate identities for different Stellar networks (e.g., Testnet, Futurenet, Mainnet).
Behind the Scenes
SORA uses the Stellar CLI's keys
command to manage identities. Here are some of the operations performed:
stellar keys add
: Add a new identitystellar keys generate
: Generate a new identity with a seed phrasestellar keys fund
: Fund an identity on a test networkstellar keys ls
: List identitiesstellar keys rm
: Remove an identitystellar keys show
: Display identity details
While SORA provides a user-friendly interface for these operations, understanding the underlying commands can be helpful for advanced users and troubleshooting.