Skip to content

fix: Remove vc verify and implement new sdk#75

Merged
Vikastc merged 11 commits intodhiway:cordproof-2025from
Vikastc:sdk-4
Jul 1, 2025
Merged

fix: Remove vc verify and implement new sdk#75
Vikastc merged 11 commits intodhiway:cordproof-2025from
Vikastc:sdk-4

Conversation

@Vikastc
Copy link
Contributor

@Vikastc Vikastc commented Jun 18, 2025

No description provided.

Vikastc added 2 commits June 18, 2025 11:44
Signed-off-by: vikastc <vikas.tc@dhiway.com>
Signed-off-by: vikastc <vikas.tc@dhiway.com>
@Vikastc Vikastc requested review from amarts and vatsa287 June 19, 2025 06:31
@Vikastc Vikastc marked this pull request as draft June 19, 2025 06:32
@Vikastc Vikastc changed the title fix: Remove vc verify and auth middleware fix: Remove vc verify and implement new sdk Jun 19, 2025
Signed-off-by: vikastc <vikas.tc@dhiway.com>
@amarts
Copy link
Member

amarts commented Jun 19, 2025

you may need change in package.json to add newer cord sdk?

@Vikastc
Copy link
Contributor Author

Vikastc commented Jun 19, 2025

Yes i have that in changes, will push . Just wanted to confirm 2 things in this pr-

  1. No need of vc-verify in main branch (we can create a new branch and add it there)
  2. Confirm on profile creation

Signed-off-by: vikastc <vikas.tc@dhiway.com>
@amarts
Copy link
Member

amarts commented Jun 19, 2025

that looks fine IMO.

Vikastc added 2 commits June 19, 2025 21:21
Signed-off-by: vikastc <vikas.tc@dhiway.com>
Signed-off-by: vikastc <vikas.tc@dhiway.com>
// Create new account with mnemonic
console.log('\n:bust_in_silhouette: Creating new account...');
await cryptoWaitReady();
const mnemonic = 'couple virtual next lottery state danger tent flame finger salad task material';

Choose a reason for hiding this comment

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

Load from process.env

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack

}
}, 30000);

api.tx.balances

Choose a reason for hiding this comment

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

Can add a TODO to load the account with funds when stash account runs out of tokens.
It can be through a separate private service IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can provide the faucet link

Copy link

@vatsa287 vatsa287 left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: vikastc <vikas.tc@dhiway.com>
package.json Outdated
"author": "",
"license": "ISC",
"dependencies": {
"@cord.network/vc-export": "0.9.6-alpha7",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"@cord.network/vc-export": "0.9.6-alpha7",
"@cord.network/vc-export": "0.9.6-alpha8",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Does this have type: 'sr25519'

Choose a reason for hiding this comment

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

Yes your PR might be part of it. Check if the function is updated

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tried it its not there

Vikastc added 2 commits June 26, 2025 13:22
Signed-off-by: vikastc <vikas.tc@dhiway.com>
Signed-off-by: vikastc <vikas.tc@dhiway.com>
@Vikastc Vikastc marked this pull request as ready for review June 26, 2025 07:57
@Vikastc Vikastc changed the base branch from main to cordproof-2025 June 26, 2025 08:42
Signed-off-by: vikastc <vikas.tc@dhiway.com>
@Vikastc Vikastc requested review from amarts and vatsa287 June 30, 2025 09:25
keyType: account.type,
signature: issuerAccount.sign(data),
keyType: issuerAccount.type,
keyUri: issuerDid,
Copy link
Member

Choose a reason for hiding this comment

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

can this change to issuerDid + '#' + issuerAccount.address ?

Copy link
Contributor Author

@Vikastc Vikastc Jun 30, 2025

Choose a reason for hiding this comment

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

You mean like this ?
keyUri: issuerDid + '#' + issuerAccount.address

If yes , why?

Copy link
Member

Choose a reason for hiding this comment

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

yes. Because, issuerDid is going to give you a didDocument for verifying the signature / key.

But in this case, you are clearly telling which is the particular key out of the did you are using (note that there can be more than 1 key in a did, and you need to have data of that particular key in the keyUri field.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok so will change the keyUri in both addProof() and updateAddProof()

Copy link
Member

@amarts amarts left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: vikastc <vikas.tc@dhiway.com>
@Vikastc Vikastc merged commit daee7df into dhiway:cordproof-2025 Jul 1, 2025
@Vikastc Vikastc deleted the sdk-4 branch July 1, 2025 05:33
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