Commit Graph

14 Commits

Author SHA1 Message Date
f175c99067 [WIP][UNSTABLE] Gradually adding lipmaa header. 2020-04-12 09:38:52 -05:00
291b450da6 Improve lexer error handling tests 2020-04-10 07:39:50 -05:00
a6a8634cab WIP. 7 tests failing. Refactor Pigeon::Draft / ::Message
Pigeon::Message was holding on to too many drafting responsibilities.
It also was possible for the local identity to inadvertantly author
malformed messages. This is because local messages were not passed
through the ::Lexer / ::Parser and thereby did not receive the same
scrutiny of remote messages.

To avoid security problems later, and for additional security,
I will only allow messages to be saved *after* passing through the
lexer/parser. This means moving much of Pigeon::Message's logic
into Pigeon::Draft.
2020-04-07 08:58:53 -05:00
dd7456cc88 Rename .public_key attributes to .multihash for consistency 2020-04-06 07:22:24 -05:00
dd455ff1df [STABLE] Convert URLSafeb64 to Crockford32. 2020-04-05 20:21:50 -05:00
6b71044e86 Fix most failing tests. 2020-04-03 04:48:28 -05:00
3c36f0efc2 Add ::Helpers.create_message(), Fix ALPHANUMERICISH regex (needed to allow hyphens) 2020-04-02 07:11:23 -05:00
f3373863a6 Rename KeyPair to LocalIdentity to disambiguate (were dealing with peers now). 2020-03-24 07:39:32 -05:00
8d9deb90af Finish tests for Pigeon::Lexer 💯 ✔️ 2020-03-23 08:56:04 -05:00
3982406014 More tests for Lexer. NEXT: Fix coverage elsewhere, write parser 2020-03-23 08:39:35 -05:00
d10d9bbadc Bug fix: Lexer hangs on single entry bundles. 2020-03-23 08:39:00 -05:00
33cf84fa7b Dont reuse :TERMINATOR tokens. Add tests for bundle consumption. Found bug when consuming single message (?) 2020-03-20 09:01:02 -05:00
0a907cb086 Move Pigeon::Lexer into its own module 2020-03-18 07:32:40 -05:00
decc2f83a0 (FAILING) Finish all the regexes required for a bundle lexer 2020-03-17 08:40:09 -05:00