blockchainexe / eth_hack_team15

0 stars 0 forks source link

/verify の中でMNIDをゲットできるかチェックする #4

Open shogochiai opened 6 years ago

shogochiai commented 6 years ago

これ取れれば https://www.npmjs.com/package/mnid

https://github.com/chanpu/uport-front/blob/4c8869f26f8c80922f75e39e334657b292fa0c1c/src/user/ui/loginbutton/LoginButtonActions.js#L28 できる

MNID_PAYLOAD = "1" + "network_id || bytes4(genesisHash)" + "ProxyContractADDR(学割NFTのオーナーアドレス)"
MNID = base58(MNID_PAYLOAD + bytes4(sha3(MNID_PAYLOAD)))
shogochiai commented 6 years ago

@june29 さんにパス!

ここでMNIDとれるか知りたいです! https://github.com/blockchainexe/eth_hack_team15/blob/verify/index.js#L53-L67