blockchain-certificates / BlockcertsFramework-iOS

An iOS wallet for viewing, validating, and sharing certs
MIT License
20 stars 15 forks source link

Test chain via issuer address when present #35

Closed bedinotti closed 7 years ago

bedinotti commented 7 years ago

This change is a little more complicated than I thought, mostly to retain backwards compatibility with validation back to v1.1 certificates. It also exposed that I was handling the verify data wrong in v2.0a+ certificates.

So! This PR does a few things:

bedinotti commented 7 years ago

Oh! A consequence of this is that we're not checking the issuer's address in pre-v2.0a certificates. This should be fine, since for all of those certificates, you should only have been able to issue to the chain you're on. In other words, we only introduced the ability to issue a testnet cert to a main net address while developing 2.0.