Research Article

Traceable and Authenticated Key Negotiations via Blockchain for Vehicular Communications

Algorithm 2

System parameters are generated and uploaded into blockchain (type-II).
Data: Null
(1) ⟵ random();
(2)while (!IsPrime())do
(3) ⟵ random();
(4)end
(5) ⟵ (random()%);
(6)a ⟵ (random()%());
(7)A ⟵ ( % );
(8)Transaction ⟵ code(, , A);