Research Article

A Traceable Blockchain-Based Vaccination Record Storage and Sharing System

Algorithm 2

The smart contract Sign
function Sign (string h, string R, Roles d) public returns (string r, string s){
(x, y) = R ∗ G
r = x % n
s = (h + r ∗ d)/x%n
return r, s
}