Skip to content

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 address
  • representative_public_key: representative's public key
  • message: message to be signed as proof-of-represenation of this AgentRecord
  • signature: proof-of-representation of this AgentRecord
  • ledger_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.