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

SEA Certify does not work when more than 1 pub is supplied #1144

Open
jakethejab opened this issue Sep 29, 2021 · 2 comments
Open

SEA Certify does not work when more than 1 pub is supplied #1144

jakethejab opened this issue Sep 29, 2021 · 2 comments

Comments

@jakethejab
Copy link

I'm experiencing an issue with SEA certify. If I provide the pub of 1 user it works fine (the user is able to write to the authority user's graph). If I provide more than 1 pub, it does not work at all.

This works:

const cert = await SEA.certify(
  ['H5LBBxrb0wFukxlI9YAFif9M-LVE6JFtRwvMZCTfe54.CzOB4zTpzR3OPa7Ncf6pfOVmyXiAJp3-XohtcBgvwBw'],  // 1 pub provided
  {"*": "messages", '+': '*' },
  authorityUser.pair(),
  null
);

This doesn't:

const cert = await SEA.certify(
  ['H5LBBxrb0wFukxlI9YAFif9M-LVE6JFtRwvMZCTfe54.CzOB4zTpzR3OPa7Ncf6pfOVmyXiAJp3-XohtcBgvwBw', 'eBv261G2jBJOQzAUEb-jn6XISvRQq3rbPgLaatrC9qQ.ZUXChPYESeYFiGizTuppffBETXaBnOTAYjValT1qpsg'], // 2 pubs provided
  {"*": "messages", '+': '*' },
  authorityUser.pair(),
  null
);

When supplying more than 1 pub for the certificate, puts to the authority user's graph will silently fail, there is no acknowledgement or error message.

@mimiza
Copy link
Contributor

mimiza commented Sep 30, 2021

Thanks. I'll fix this after certify block is fixed.

@mimiza
Copy link
Contributor

mimiza commented Jan 23, 2024

This PR fixes this issue:
#1358

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

No branches or pull requests

2 participants