diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plop.erl | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/plop.erl b/src/plop.erl index d9daf8d..5443183 100644 --- a/src/plop.erl +++ b/src/plop.erl @@ -408,11 +408,14 @@ serialise(#spt_signed{ }) -> Sigtype = signature_type(SigtypeAtom), Entrytype = entry_type(EntrytypeAtom), - <<Version:8, - Sigtype:8, - Timestamp:64, - Entrytype:16, - Entry/binary>>; + Extensions = <<>>, + list_to_binary( + [<<Version:8, + Sigtype:8, + Timestamp:64, + Entrytype:16>>, + serialise_tls_vector(Entry, 3), + serialise_tls_vector(Extensions, 2)]); serialise(#mtl{ % Merkle Tree Leaf. version = Version, leaf_type = TypeAtom, |