-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft of programming an AEA, proof read overall #380
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this. I added my comments.
docs/hacking-an-agent.md
Outdated
public_key_1 = "mailbox1" | ||
mailbox1 = MailBox(OEFLocalConnection(public_key_1, node)) | ||
private_key_pem_path = os.path.join(CUR_PATH, "data", "priv.pem") | ||
wallet = Wallet({'default': private_key_pem_path}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wallet creation should be done first.
Then they can get the public key like so:
public_key = wallet.public_keys['default']
Then they can set up a mailbox like so:
mailbox = MailBox(stub_connection)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The stub connection doesn't use the public key.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, I would still swap it around as in all but this connection case the public key is needed and derived from the wallet.
docs/hacking-an-agent.md
Outdated
private_key_pem_path = os.path.join(CUR_PATH, "data", "priv.pem") | ||
wallet = Wallet({'default': private_key_pem_path}) | ||
``` | ||
|
||
Using a variable for accessing running ledgers, initialise the agent. | ||
Get the public key from the wallet. You would use this to talk to an OEF or Fetch.ai ledger node. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would comment this out. We might use it another time but here it does not add value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put the pk comments in a Note. Awaiting your approval.
merge with develop
Bumps oef sdk to 0.8.1 and adds reconnection procedure
merge with develop.
…o feature/gui_tests merged from latest.
Add test in aea
Feature/docs
Feature/gui tests
Update clone path
Add is connected status to skill context
Feature/car park conn
Change default wallet to FETCHAI
Proposed changes
Including a DRAFT page of instructions to fix: #298.
Complete proof read of everything from last week.
Fixes
None.
Types of changes
What types of changes does your code introduce to agents-aea?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.develop
branch (left side). Also you should start your branch off ourdevelop
.aea cli
tool worksFurther comments
None.