An IONVerifier may be used in two contexts for retrieving bundles:
With RPC/IPFS clients available
With a single HTTP trustchain bundle endpoint
The API for the IONVerifier can be refactored to perform the required new() and fetch_bundle() calls depending on these two contexts using the type state pattern.
An
IONVerifier
may be used in two contexts for retrieving bundles:The API for the
IONVerifier
can be refactored to perform the requirednew()
andfetch_bundle()
calls depending on these two contexts using the type state pattern.