Using Veramo with Ganache #1363
Replies: 2 comments 1 reply
-
Same problem |
Beta Was this translation helpful? Give feedback.
-
This might be a bit late for you guys, but I'll answer. Ganache has been sunset by ConsenSys, so for a local node you'd be looking to use DeployOnce you have one of those local networks up, you'd first want to deploy your registry flavor, for example At the bottom of the README there are instructions to deploy the registry to a blockchain. If you need more detail look at this issue. ConfigureYou'll need to look in the docs for the context of where this should go, but this is a rough go at it. new DIDManager({
store: new DIDStore(dbConnection),
defaultProvider: 'anvil',
providers: {
'did:ethr:anvil': new EthrDIDProvider({
defaultKms: 'local',
networks: [
{
name: 'anvil' // I would have named this `local` but for the confusion with the local kms.
provider: new JsonRpcProvider(
127.0.0.1:8545, // Anvil local node
31337, // ChainId, not tested by me
),
registry: '0x03d5003bf0e79c5f5223588f347eba39afbc3818', // current version CREATE2 address
},
],
}),
},
}), You'd also need to setup your I prefer to use Your dids will look like this |
Beta Was this translation helpful? Give feedback.
-
Hey, Im new to vermao and im trying to find a way to use in a local node (ganache) but i cant seem to connect to it.
I will be very grateful if someone could help me!
Beta Was this translation helpful? Give feedback.
All reactions