Replace Configuration
with RequestBuilder
to replace PjUri::create_pj_request
#19
Milestone
Configuration
with RequestBuilder
to replace PjUri::create_pj_request
#19
I'm starting to think of this
Configuration
struct more as asender::RequestBuilder
that can turn into a(Request, Context)
when you callfrom_psbt_and_uri
. Maybe the signature for that method should beinstead of on the manually-validated
Uri<PayJoinParams>
how it is now:pj_url.create_pj_request(psbt, pj_params: Configuration) -> Result<(Request, Context)>
.Then create_pj_request could validate the endpoint
check_pj_supported()
during that call instead of requiring it be done by hand before the call, too.Originally posted by @DanGould in #18 (comment)
The text was updated successfully, but these errors were encountered: