eosrio / bp-info-standard

JSON Standard for Block Producer Information on EOSIO Blockchains
48 stars 58 forks source link

Follow RFC5785 for /.well-known/ URIs #5

Open ellipticasec opened 6 years ago

ellipticasec commented 6 years ago

RFC5785 is internet standard for defining well known machine discoverable URIs https://tools.ietf.org/html/rfc5785

We should do something like https://bp.org/.well-known/eos/chain-id/bp.json

ellipticasec commented 6 years ago

@eosrio any opinion on this. I don’t like to litter the root of my URI path with that. It should be namespaced.

eosrio commented 6 years ago

We agree with this new pattern, but since it will require everyone's adoption we would like more opinions on this.

DenisCarriere commented 6 years ago

I'm 👍 adding this pattern, 🤔 however the hard task will be:

I'd suggest this URI pattern be optional until there's a majority of BP's who are using it.

Easiest way to implement would be to use a symbolic link to support both URI's:

$ ln -s /var/www/html/bp.json /var/www/html/.well-known/eos/aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906/bp.json

@ellipticasec The final URI path would look something like this, correct?

https://bp.eosnation.io/.well-known/eos/aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906/bp.json