Referring to the question 11272, I have an experiment with MiniNero:
tx_pub_key = "f6d51a0cabd6a68f2c4960bc06b4132d6b937622b8954ea95851aa5f3b32c1de"
pri_view_key = "89a705a1a6427e7a19fd17a78d4a5c35bcb9ce4af74d6c180d5e39909694ab0a"
aR = MiniNero.mul8(MiniNero.scalarmultKey(tx_pub_key, pri_view_key))
tmp = MiniNero.cn_fast_hash(aR+"00")
res = MiniNero.cn_fast_hash("616d6f756e74"+tmp) #616d6f756e74 is ASCII of "amount"
Then I get the result:
0e37ec1966076a6c5c6f15b1ad32f415b5f3e2426c1dc8c95c73b72cabe02168
The last step is to XOR each first 8-byte data:
amount = MiniNero.xor("54f95f7d7f4d1e2a", "0e37ec1966076a6c")
However, the result is not right. Am I doing something wrong? Please help to solve this, Thanks!
BTW, I get 54f95f7d7f4d1e2a
from ecdhInfo
(explorer)