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

Joined member of multisig can't access registries #316

Open
daviddm opened this issue Nov 5, 2024 · 6 comments
Open

Joined member of multisig can't access registries #316

daviddm opened this issue Nov 5, 2024 · 6 comments

Comments

@daviddm
Copy link

daviddm commented Nov 5, 2024

There’s no way for a new member in a multisig to catch up with all previously created registry in a multisig.

version: Current stable release latest/0.2.0-dev4 (2024-11-05)

I’ve created a test case to highlight that there’s no functionality for a multisig to extend or change their members and continue normal issuance operations.

Steps to reproduce

  1. Create multisig with member A and B
  2. Member A and B creates a registry for the multisig
  3. Member A and B adds new member C to the multisig
  4. Member C successfully joins the multisig
  5. Member C lists the registries for the multisig

Expected result

Member C gets a list with registries belonging to the multisig.

Actual result

Member C gets an empty list of registries for the multisig.

Reproduction

https://github.com/nordlei/vlei-sandbox/blob/multisig-join-credential/src/issues/multisig-join-registry-problem.test.ts

Related

#283

@2byrds
Copy link
Collaborator

2byrds commented Nov 7, 2024

@m00sey and @Arsh-Sandhu maybe you can help us know how this is done in KERIA/keripy? Perhaps there are scripts to update the underlying database? Any inspiration is welcome.

@2byrds
Copy link
Collaborator

2byrds commented Nov 7, 2024

@Arsh-Sandhu will add details for how he did this here
This was part of the migration from commandline keripy wallets to KERIA wallets.

@Arsh-Sandhu
Copy link
Contributor

To migrate an existing registry of the multisig AID to the wallet of a newly added member, follow these steps:

  • From the wallet of an existing member of the multisig, export any or all issued credentials of the multisig AID in CESR format. In Signify, you can use the Get method of the Credentials class and pass arg includeCESR=true.
  • Send a PUT request to http://<keria-agent-address>:<keria-agent-port>/ with the headers CESR-DESTINATION: <local AID of the newly added member in the multisig AID> and Content-Type: application/octet-stream, and include the exported credential data in the body. For example:
    curl -X PUT http://<keria-agent-address>:<keria-agent-port>/ --data-binary @credentials.cesr -H "CESR-DESTINATION: <local AID of newly added member into multisig AID>" -H "Content-Type: application/octet-stream"
  • This will store the exported credential(s) and the registry in the new member's wallet.
  • At this point, the registry does not have a name.
  • In Signify, to update the name of the registry, use the rename method of the Registries class: rename(name: string, registryName: string, newName: string). Pass the following arguments
    • name: Alias of the multisig AID
    • registryName: Registry prefix
    • newName - New registry name

@2byrds
Copy link
Collaborator

2byrds commented Nov 7, 2024

To migrate an existing registry of the multisig AID to the wallet of a newly added member, follow these steps:

  • From the wallet of an existing member of the multisig, export any or all issued credentials of the multisig AID in CESR format. In Signify, you can use the Get method of the Credentials class and pass arg includeCESR=true.
  • Send a PUT request to http://<keria-agent-address>:<keria-agent-port>/ with the headers CESR-DESTINATION: <local AID of the newly added member in the multisig AID> and Content-Type: application/octet-stream, and include the exported credential data in the body. For example:
    curl -X PUT http://<keria-agent-address>:<keria-agent-port>/ --data-binary @credentials.cesr -H "CESR-DESTINATION: <local AID of newly added member into multisig AID>" -H "Content-Type: application/octet-stream"
  • This will store the exported credential(s) and the registry in the new member's wallet.
  • At this point, the registry does not have a name.
  • In Signify, to update the name of the registry, use the rename method of the Registries class: rename(name: string, registryName: string, newName: string). Pass the following arguments
    • name: Alias of the multisig AID
    • registryName: Registry prefix
    • newName - New registry name

You are a gem @Arsh-Sandhu !

@daviddm
Copy link
Author

daviddm commented Nov 11, 2024

@Arsh-Sandhu I just tried this and I'm not really sure which endpoint this will invoke.
Which version of KERIA did you use for this?

@Arsh-Sandhu
Copy link
Contributor

@daviddm we used KERIA v1.1. This endpoint is also in the latest code of main branch. It is in HttpEnd class of indirecting.py

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

3 participants