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

Multisig grant and admit messages and fixes in seqner #133

Merged
merged 4 commits into from
Nov 14, 2023

Conversation

rodolfomiranda
Copy link
Collaborator

@rodolfomiranda rodolfomiranda commented Nov 11, 2023

This PR replaces PR #124. It adds examples on the integration script multisig.ts showing how to pass grant and admit messages between a multisig issuer and a single sig holder.
It also fixed a serialization error on the seqner and holder that used little endian instead of big endian. Test results were validated against tests in keripy

Rodolfo Miranda added 2 commits November 9, 2023 14:37
Copy link

codecov bot commented Nov 11, 2023

Codecov Report

Merging #133 (3a41dce) into development (031fde6) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@               Coverage Diff               @@
##           development     #133      +/-   ##
===============================================
+ Coverage        80.94%   80.97%   +0.02%     
===============================================
  Files               42       42              
  Lines             4173     4178       +5     
  Branches          1028     1028              
===============================================
+ Hits              3378     3383       +5     
  Misses             763      763              
  Partials            32       32              
Files Coverage Δ
src/keri/app/exchanging.ts 98.43% <100.00%> (+0.13%) ⬆️
src/keri/core/eventing.ts 73.78% <100.00%> (ø)
src/keri/core/utils.ts 68.23% <100.00%> (ø)

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@@ -197,7 +105,7 @@ async function run() {
// First member start the creation of a multisig identifier
let rstates = [aid1['state'], aid2['state'], aid3['state']];
Copy link
Contributor

Choose a reason for hiding this comment

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

When three clients are hosted on different machines, or even on different shells, they will not be able to directly obtain other clients' states directly like in this examples.

I suggest adding client.keyStates().get(...) for each client to obtain other clients' states.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

You are correct, in a real scenario you should keep track of the states independently.

@rodolfomiranda rodolfomiranda merged commit 370d7b8 into WebOfTrust:development Nov 14, 2023
4 checks passed
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.

3 participants