Solidity
合約中是否可以訪問 privateFor 參數的值?
仲裁的交易參數可以包含一個
privateFor
參數{ "jsonrpc":"2.0", "method":"eth_sendTransaction", "params":[ { "from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "gas": "0x76c0", // 30400 "gasPrice": "0x9184e72a000", // 10000000000000 "value": "0x9184e72a", // 2441406250 "data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675", "privateFor": ["$PUBKEY1, $PUBKEY2"] } ], "id":1 }
如何
privateFor
從solidity合約程式碼訪問參數?
目前,privateFor 從未在鏈上或 EVM 中傳遞或記錄,因此,不可能在合約中讀取 privateFor