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

[Zoe] Add Zoe method that takes an invitation and returns installation, instance, instanceRecord etc. #1456

Closed
katelynsills opened this issue Aug 12, 2020 · 2 comments
Assignees
Labels
Zoe package: Zoe

Comments

@katelynsills
Copy link
Contributor

katelynsills commented Aug 12, 2020

What is the Problem Being Solved?

this is modeled on getInvitationFields(), currently in zoeTestHelpers. The observation is that clients outside the contracts often have an invitation and want access to verified value of various fields. getInvitationFields() hides the way that it's retrieved from the inviteIssuer. To make this easier to use, we should add methods to zoe that return the info that Zoe guarantees to be present in the invitation.

Description of the Design
instead of

export const getInvitationFields = (invitationIssuer, invitationP) =>
  E(invitationIssuer)
    .getAmountOf(invitationP)
    .then(amount => amount.value[0]);

zoe can synchronoously access the individual fields.

Security Considerations

The only security consequences are that clients of the API will be less aware of the invitation issuer's role.

Test Plan

None.

@erights
Copy link
Member

erights commented Aug 13, 2020

See #1414 (comment)

@katelynsills
Copy link
Contributor Author

Closed by #1414

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Zoe package: Zoe
Projects
None yet
Development

No branches or pull requests

3 participants