-
Notifications
You must be signed in to change notification settings - Fork 36
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
publish genesis state #133
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ export interface TreesModel { | |
* @param {number[]} [revokedNonces] - revoked nonces since last published info | ||
* @returns void | ||
*/ | ||
export async function pushHashesToRHS( | ||
export async function publishStateToRHS( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. are you sure that we want to check public interface here? I think it is better to live it as is. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @vmidyllic we discussed it. And we decided to add export to this function and call it inside on There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it was exported already, so this is a problem of renaming already exported function There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I returned old name |
||
state: Hash, | ||
trees: TreesModel, | ||
rhsUrl: string, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would expect
default
keyword which throwsError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For
SparseMerkleTreeProof
,Iden3commRevocationStatusV1
,Iden3ReverseSparseMerkleTreeProof
types we have to modify theid
field. All other types remain unchangedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add
default
keyword toswitch
statement which will throw an Error in case for some reasonsrequest.revocationOpts.type
none of available casesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need to modify id for Iden3commRevocationStatusV1. This is not right! Agent URL must remain the same.
https://iden3-communication.io/status/overview/#iden3commrevocationstatusv10:~:text=Send%20the%20constructed%20revocation%20status%20request%20message%20in%20plain%20text%20format%20to%20the%20issuer%27s%20agent%20endpoint%2C%20which%20is%20specified%20in%20the%20id%20field.%20The%20communication%20will%20take%20place%20using%20the%20iden3comm%20protocol.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How I understand this regexp cuts end '/'. We should cut the last '/' for the agent endpoint also to be sure that SDK will not create a URL like
https/agent//
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Kolezhniuk @vmidylli about the
default
case. I disagree that we should return an error if we have an unknown type.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ilya-korotya ok, in case we don't need to throw an Error, I would expect
default
statement in any case where you need to use switch to make logic flow explicitlyThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.