aea.identity.base
This module contains the identity class.
Identity Objects
class Identity()
The identity holds the public elements identifying an agent.
It includes:
- the agent name
- the addresses, a map from address identifier to address (can be a single key-value pair)
__
init__
| __init__(name: str, address: Optional[str] = None, addresses: Optional[Dict[str, Address]] = None, default_address_key: str = DEFAULT_LEDGER)
Instantiate the identity.
Arguments:
name
: the name of the agent.address
: the default address of the agent.addresses
: the addresses of the agent.default_address_key
: the key for the default address.
default_
address_
key
| @property
| default_address_key() -> str
Get the default address key.
name
| @property
| name() -> str
Get the agent name.
addresses
| @property
| addresses() -> Dict[str, Address]
Get the addresses.
address
| @property
| address() -> Address
Get the default address.