bip78 0.1.0-preview

Library implementing PayJoin (BIP78) protocol.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub struct RequestError(InternalRequestError);

pub(crate) enum InternalRequestError {
    Decode(bitcoin::consensus::encode::Error),
    MissingHeader(&'static str),
    InvalidContentType(String),
    InvalidContentLength(std::num::ParseIntError),
    ContentLengthTooLarge(u64),
}

impl From<InternalRequestError> for RequestError {
    fn from(value: InternalRequestError) -> Self {
        RequestError(value)
    }
}