npm installnpm run gen-keys:deployernpm run gen-keys:signer-
4.1 Save your Rinkeby private key into the
rinkeby-private-keyfile. -
4.2 Save your Rinkeby address into the
rinkeby-accountfile -
4.3 Update
adminAddressin./migrations/2_prototype.jsto match the address saved into therinkeby-accountfile.
npm run migrate:testnetnode prototype.js approve <publicKey> <str1> <str2> <address>Example:
node prototype.js approve u1F3RvRvW9v4X/dIZSpbW6a+r5XZ2pgM9508l8T6AYI= str01 str02 0x653bcf82b202dbaac4fdcee8266fc7a93cb26539
hash: 0x297d23024f699496deebfb77181ff34f878a6e3172e98995976058ed43b4589d
Approver: 0x4d64761D2221dBc0E3dfd0aFE1A94d5f6f4Bd159
PubKey: u1F3RvRvW9v4X/dIZSpbW6a+r5XZ2pgM9508l8T6AYI=
Str1: str01
Str2: str02
Address: 0x653bCF82B202dBAAc4fDCee8266fC7a93cB26539
Hash: 0x7503ee571069b533155a8f9765419c90ca27e5c453487d6120e0ddd813048d88node prototype.js getData <hash>Example:
node prototype.js getData 0x7503ee571069b533155a8f9765419c90ca27e5c453487d6120e0ddd813048d88PubKey: u1F3RvRvW9v4X/dIZSpbW6a+r5XZ2pgM9508l8T6AYI=
Str1: str01
Str2: str02
Address:0x653bCF82B202dBAAc4fDCee8266fC7a93cB26539