Crate client_side_validation[−][src]
Primitives module defines core strict interfaces from informational LNPBP standards specifying secure and robust practices for function calls used in main LNP/BP development paradigms:
- Cryptographic commitments and verification
- Single-use seals
- Client-side validation
- Strict binary data serialization used by client-side validation
The goal of this module is to maximally reduce the probability of errors and mistakes within particular implementations of this paradigms by standartizing typical workflow processes in a form of interfaces that will be nearly impossible to use in the wrong form.
Modules
commit_strategy | Implemented after concept by Martin Habovštiak martin.habovstiak@gmail.com |
commit_verify | Base commit-verify scheme interface with extension allowing to create embedded commitments (commit-embed-verify), required for detarministic bitcoin commitments (LNPBP1-3 standards). |
single_use_seals | Single-use-seals |
Macros
commit_encode_list |
Structs
MerkleNode | A hash of a arbitrary Merkle tree branch or root |
MerkleSource |
Traits
CommitConceal | |
CommitEncode | |
CommitEncodeWithStrategy | |
ConsensusCommit | |
ConsensusMerkleCommit | |
ToMerkleSource |
Functions
merklize | Merklization procedure that uses tagged hashes with depth commitments |