Research Article

Traceable and Authenticated Key Negotiations via Blockchain for Vehicular Communications

Algorithm 3

Master key parameters are generated to blockchain (type-I).
Data: ,
(1)Key initiator:
(2) ⟵ readblock();
(3) ⟵ (readblock()%);
(4)a ⟵ (random()%());
(5)A ⟵ ( % );
(6)Transaction ⟵ code(, , A);
(7)Submit;
(8)Key receiver:
(9) ⟵ readblock();
(10) ⟵ (readblock()%);
(11)b ⟵ (random()%());
(12)B ⟵ ( % );
(13)Transaction ⟵ code(B);
(14)Submit;