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

Feat: did resolver storage #286

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open

Conversation

volodymyr-basiuk
Copy link
Collaborator

No description provided.

@volodymyr-basiuk volodymyr-basiuk marked this pull request as ready for review November 19, 2024 14:41
@@ -89,5 +89,5 @@ export type DIDDocument = DidResolverDidDocument & {
export type VerificationMethod = DidResolverVerificationMethod & {
published?: boolean;
info?: StateInfo;
global?: RootInfo;
global?: RootInfoWithProof;
Copy link
Collaborator

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,
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

src/storage/blockchain/did-resolver-readonly-storage.ts Outdated Show resolved Hide resolved
if (!vm) {
throw new Error('Iden3StateInfo2023 verification method not found');
}
const { global } = vm as VerificationMethod;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const { global } = vm as VerificationMethod;
const { global } = vm;

src/storage/blockchain/did-resolver-readonly-storage.ts Outdated Show resolved Hide resolved
publishState(): Promise<string> {
throw new Error('publishState method not implemented.');
}
publishStateGeneric(): Promise<string> {
Copy link
Collaborator

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

src/credentials/status/did-resolver-revocation.ts Outdated Show resolved Hide resolved
src/storage/blockchain/onchain-zkp-verifier.ts Outdated Show resolved Hide resolved
src/utils/did-helper.ts Outdated Show resolved Hide resolved
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