ssi icon indicating copy to clipboard operation
ssi copied to clipboard

Resolve DIDDocument from cached events

Open nichonien opened this issue 2 years ago • 2 comments

Hi Team,

The did resolution to DIDDocument takes blockchain interaction to execute and sometimes may not be efficient for large number of resolution calls. If the resolver could have configurations / options to accept cached did events and fetch the events beyond the cached scope to create the DIDDoc it would be much more faster I guess.

So the resolver might look like, resolver(did, cachedEvent[], lastBlock). The lastBlock param would be the block number till where the events have been cached.

Let me know your thoughts. Thanks!

nichonien avatar Apr 21 '22 06:04 nichonien