Skip to content
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

chore: updating Agent generic interface #536

Merged
merged 3 commits into from Mar 23, 2022
Merged

Conversation

krpeacock
Copy link
Contributor

also adds additional comments for new methods and some additional README content.

also adds additional comments for new methods and some additional README content.
@krpeacock krpeacock requested review from a team February 18, 2022 00:00

This is useful if you need to replace or invalidate the identity used by an actor's agent.

For example, if you want to replace the identity of an actor's agent with a newly authenticated identity from [Internet Identity](https://identity.ic0.app), you can do so by calling the `Actor.replaceAgent` method:
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this identity comes from in the first place? Is an identity used when creating an actor for the first time?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, an AnonymousIdentity is initialized during the constructor if no other identity is provided

@krpeacock krpeacock merged commit cefda90 into main Mar 23, 2022
@krpeacock krpeacock deleted the kyle/documenting-agent-of branch March 23, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant