Seed phrases
If you’re new to cryptography…
Imagine you have a treasure chest full of your code, but instead of a key, it has a secret password to open it. This password is made up of any characters you choose. This “password” is your seed phrase, when you create one make it really complicated.
If you remember your seed phrase, you can open your treasure chest anytime, anywhere, even if you lose the chest. In our case, our chest is our agent identity. However, if someone else learns your seed phrase, they can impersonate your agent! Not just impersonate, but they would also have access to the wallet of the agent. So, it’s super important to keep the seed phrase safe, like hiding it in a secret place or writing it down where no one can find it. Never tell anyone your seed phrase unless you really, really trust them!
uAgents creates an address for your agent cryptographically with your defined seed phrase, this all happens out of view in the uAgents library view the src.
To define your seed phrase, enter your unique phrase as the value to seed
, see below:
sigmar = Agent(name="demo", seed="demo oehfourfuueuje73773 kjsjss9jshshs recovery phrase", port=8000, endpoint=["http://localhost:8000/submit"])
Now, any agent that uses the seed demo oehfourfuueuje73773 kjsjss9jshshs recovery phrase
will take control of that agent’s identity.