aea.helpers.acn.agent_
record
This module contains types and helpers for acn Proof-of-Representation.
AgentRecord Objects
class AgentRecord()
Agent Proof-of-Representation to representative.
__
init__
| __init__(address: str, representative_public_key: str, message: bytes, signature: str, ledger_id: str)
Initialize the AgentRecord
Arguments:
address
: agent addressrepresentative_public_key
: representative's public keymessage
: message to be signed as proof-of-represenation of this AgentRecordsignature
: proof-of-representation of this AgentRecordledger_id
: ledger id
address
| @property
| address() -> str
Get agent address
public_
key
| @property
| public_key() -> str
Get agent public key
representative_
public_
key
| @property
| representative_public_key() -> str
Get agent representative's public key
signature
| @property
| signature() -> str
Get record signature
message
| @property
| message() -> bytes
Get the message.
ledger_
id
| @property
| ledger_id() -> str
Get ledger id.
__
str__
| __str__()
Get string representation.
from_
cert_
request
| @classmethod
| from_cert_request(cls, cert_request: CertRequest, address: str, representative_public_key: str) -> "AgentRecord"
Get agent record from cert request.