-
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
Feat: did resolver storage #286
base: main
Are you sure you want to change the base?
Conversation
src/iden3comm/types/protocol/auth.ts
Outdated
@@ -89,5 +89,5 @@ export type DIDDocument = DidResolverDidDocument & { | |||
export type VerificationMethod = DidResolverVerificationMethod & { | |||
published?: boolean; | |||
info?: StateInfo; | |||
global?: RootInfo; | |||
global?: RootInfoWithProof; |
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.
can't we just add proof field as option and don't create another type? because we can end up with a lot of types
@@ -219,7 +221,8 @@ export class OnChainZKPVerifier implements IOnChainZKPVerifier { | |||
return new Map<string, ZeroKnowledgeProofResponse[]>().set(txnHash, zkProofResponses); | |||
} | |||
|
|||
public async prepareTxArgsSubmitV2( | |||
public static async prepareTxArgsSubmitV2( | |||
resolverUrl: 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.
looks like breaking change or is is a new function?
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.
it is a new one, we still have prepareTxArgsSubmitV2 as an instance method
if (!vm) { | ||
throw new Error('Iden3StateInfo2023 verification method not found'); | ||
} | ||
const { global } = vm as VerificationMethod; |
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.
const { global } = vm as VerificationMethod; | |
const { global } = vm; |
publishState(): Promise<string> { | ||
throw new Error('publishState method not implemented.'); | ||
} | ||
publishStateGeneric(): Promise<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.
please add space between functions
No description provided.