bolt1

Base Lightning protocol, per BOLT #1 (docs.ppad.tech/bolt1).
git clone git://git.ppad.tech/bolt1.git
Log | Files | Refs | README | LICENSE

IMPL1-1.md (493B)


      1 # IMPL1-1 - Core Primitives
      2 
      3 ## Scope
      4 
      5 - Big-endian unsigned/signed integers (u16/u32/u64, s16/s32/s64).
      6 - Truncated unsigned integers (tu16/tu32/tu64) with minimal encoding.
      7 - BigSize encode/decode with minimal checks.
      8 
      9 ## Work
     10 
     11 - Implement encode/decode functions with total APIs.
     12 - Add minimality and bounds validation.
     13 - Provide strict, small helpers for hot paths.
     14 
     15 ## Tests
     16 
     17 - Appendix A BigSize vectors.
     18 - Appendix D signed integer vectors.
     19 - Negative tests for non-minimal encodings.
     20