1050 Commits

Author SHA1 Message Date
Samuele Pedroni 4a144c58a3 small cleanup 2015-11-17 10:32:51 +01:00
Samuele Pedroni 6adeb50b29 use the order of fields we expect in practice in the examples 2015-11-16 15:52:18 +01:00
Samuele Pedroni ddf0749052 move out check* functions, make integer fields fallback to 0 instead of being mandatory, adjust doc comment 2015-11-16 15:45:52 +01:00
Samuele Pedroni d360ee4c28 use this style 2015-11-16 14:46:25 +01:00
Samuele Pedroni ef7364c5ca simplify, move understanding signature to later/specific code that will care 2015-11-16 14:44:21 +01:00
Samuele Pedroni 512ca26d92 copy input for safety 2015-11-16 14:32:50 +01:00
Samuele Pedroni fb085be6a4 go fmt 2015-11-16 14:31:57 +01:00
Samuele Pedroni 7ed31a576e repair test 2015-11-16 14:29:10 +01:00
Samuele Pedroni 441253eac5 small things, xxxs for bigger changes 2015-11-16 14:23:58 +01:00
Samuele Pedroni 6b66bfd536 possibly couple of clearer error messages 2015-11-11 20:55:13 +01:00
Samuele Pedroni d352fe0ac7 for further clarity use body-length instead of body-size 2015-11-11 18:15:14 +01:00
Samuele Pedroni f1bec12af5 just for cleanliness make sure we always represent an empty body with nil 2015-11-11 18:11:54 +01:00
Samuele Pedroni a2df4a7c7f rework signature type to be a prefix to the signature blob, calling one signature type and the other signature packet 2015-11-11 18:06:34 +01:00
Samuele Pedroni bb39b5e7ef describe format in the doc comment to Decode 2015-11-11 11:36:26 +01:00
Samuele Pedroni fe3bb5bdb5 test that Decode built the right type of assertion 2015-11-11 11:35:49 +01:00
Samuele Pedroni 66da648492 Merge branch 'asserts-generate-key-and-import-key'
bit more review reworkings
2015-11-11 08:39:35 +01:00
Samuele Pedroni c48de148df fix s/me/we/ 2015-11-11 08:38:42 +01:00
Samuele Pedroni 7cf5f6e970 Assertion, AssertionBase, Decode
Assertion is the interface of assertion representations, AssertionBase
is the concrete base to hold representation data, Decode goes from a
serialized assertion to a representation, by using a table registering
assertion types with builder taking an AssertionBase.
2015-11-10 18:33:36 +01:00
Samuele Pedroni 59a285db80 fix typo in name 2015-11-09 17:35:43 +01:00
Samuele Pedroni db9ebfb8f3 move tests to their own assert_tests package 2015-11-09 17:28:43 +01:00
Samuele Pedroni 35f48b3063 redo error handling with fmt.Errorf so not to lose completely the original error information 2015-11-09 16:11:26 +01:00
Samuele Pedroni 72176db5f3 rename argument 'hier' -> 'subpath' 2015-11-09 15:34:42 +01:00
Samuele Pedroni 96860511ca return the key fingerprint as a string 2015-11-09 15:20:12 +01:00
Samuele Pedroni 093fabdf3e use the name 'database' instead of 'store' 2015-11-09 15:14:07 +01:00
Samuele Pedroni 9859c27e2c start of asserts package with AssertStore implementing GenerateKey and ImportKey 2015-11-09 13:01:37 +01:00