ipfs-social-proof icon indicating copy to clipboard operation
ipfs-social-proof copied to clipboard

refactor/standardize remote proof workflow

Open daviddahl opened this issue 6 years ago • 1 comments

It would be nice to create a standard class with standard methods to allow for easy adding of social proof published sites.

So, extract out the Gist code and reddit code and make a standard class that can be implemented for additional sources of proofs.

I imagine the interface implements something like:

  • getRawData(url)
  • extractProof(rawData)

Then the proof can just be handled generically

daviddahl avatar Nov 05 '18 15:11 daviddahl

For building interfaces in js, are you ok with using duck typing?

the only other way to get C-like interfaces is to use a transpiler of some sort. typescript

cdeng001 avatar Nov 07 '18 15:11 cdeng001