Expand description

Strategies simplifying implementation of encoding traits.

Implemented after concept by Martin Habovštiak martin.habovstiak@gmail.com

Structs

Encodes/decodes data in the same way as they are encoded/decoded according to bitcoin consensus rules from Bitcoin Core

Encodes/decodes data as a bitcoin_hashes::Hash-based (wrapper) type, i.e. as a fixed-size byte string of bitcoin_hashes::Hash::LEN length.

Encodes/decodes internet address according to LNPBP-42 “Uniform address encoding” rules. Applicable only for types implementing net::Uniform.

Encodes/decodes data as a wrapped type, i.e. according to the rules of encoding for its inner representation. Applicable only for types implementing amplify::Wrapper

Traits

Marker trait defining specific encoding strategy which should be used for automatic implementation of both StrictEncode and StrictDecode.