aea.identity.base
This module contains the identity class.
Identity Objects
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: SimpleIdOrStr, address: Optional[str] = None, public_key: Optional[str] = None, addresses: Optional[Dict[str, Address]] = None, public_keys: Optional[Dict[str, str]] = None, default_address_key: str = DEFAULT_LEDGER) -> None
Instantiate the identity.
Arguments:
name
: the name of the agent.address
: the default address of the agent.public_key
: the public key of the agent.addresses
: the addresses of the agent.public_keys
: the public keys of the agent.default_address_key
: the key for the default address.
default_
address_
key
Get the default address key.
name
Get the agent name.
addresses
Get the addresses.
address
Get the default address.
public_
keys
Get the public keys.
public_
key
Get the default public key.