Skip to content

Latest commit

 

History

History
80 lines (69 loc) · 3.51 KB

Poseidon.md

File metadata and controls

80 lines (69 loc) · 3.51 KB

Poseidon for 2 / 3 / 4 / 5 / 6 inputs (from circomlibjs 0.0.8)

https://goerli.etherscan.io/tx/0x4308b1a3d77eacdcecc529579019e5062f58adae9b52e319d6aa2c176d9ec723

https://goerli.etherscan.io/tx/0x947230c1e9ba7b70d2a90ede6a0a59efe1ac8d263e13b746b3c0bed952b49f1b

https://goerli.etherscan.io/tx/0xa5cccc96cdc767134aceab1dc2ee02e53c8abfea9495aec1e5e2cc08fd69b312

https://goerli.etherscan.io/tx/0x8668c6c5fdb38527dfd998c20ecd91aaba5d2bab12946c7b542baa1fd5f0e069

https://goerli.etherscan.io/tx/0xbd3b0c54ca9f6833fafa17915146d06d076b35b22fbda3ea7415502f690ed820

% node ./script/DeployPosiedonHash.mjs
==== nInputs: 2
bytecode length: 19512
will be deployed at addr: 0x641BC1D96C32A2F156f0c93A71aaA9f7C3e3f882
deployed. gasUsed: 2156516
inputs: 1,2
7853200120776062878684798364095072458815029376092732009249414926327459813530n
7853200120776062878684798364095072458815029376092732009249414926327459813530n
estimated gas: 50349
==== nInputs: 3
bytecode length: 24952
will be deployed at addr: 0x035B8c1e15e076D895cA1bDb7dec101dAC6811C7
deployed. gasUsed: 2744494
inputs: 1,2,3
6542985608222806190361240322586112750744169038454362455181422643027100751666n
6542985608222806190361240322586112750744169038454362455181422643027100751666n
estimated gas: 66612
==== nInputs: 4
bytecode length: 32578
will be deployed at addr: 0x3b44AA63Ac599170357dC587880fC30E506612e7
deployed. gasUsed: 3568869
inputs: 1,2,3,4
18821383157269793795438455681495246036402687001665670618754263018637548127333n
18821383157269793795438455681495246036402687001665670618754263018637548127333n
estimated gas: 91687
==== nInputs: 5
bytecode length: 38976
will be deployed at addr: 0x4CE5a8a3B939A40f92563e3e8990F460E1253E42
deployed. gasUsed: 4260407
inputs: 1,2,3,4,5
6183221330272524995739186171720101788151706631170188140075976616310159254464n
6183221330272524995739186171720101788151706631170188140075976616310159254464n
estimated gas: 118682
==== nInputs: 6
bytecode length: 47308
will be deployed at addr: 0x9fA8593c5Ad7ef49ec283C0d01fA1C6063fb7F8B
deployed. gasUsed: 5161022
inputs: 1,2,3,4,5,6
20400040500897583745843009878988256314335038853985262692600694741116813247201n
20400040500897583745843009878988256314335038853985262692600694741116813247201n
estimated gas: 155855
cast call --gas-limit 155855 --rpc-url $URL 0x9fa8593c5ad7ef49ec283c0d01fa1c6063fb7f8b "poseidon(uint256[6])(uint256)" '[1,2,3,4,5,6]'

20400040500897583745843009878988256314335038853985262692600694741116813247201
% cast send --private-key $KEY --rpc-url $URL 0x9fa8593c5ad7ef49ec283c0d01fa1c6063fb7f8b "poseidon(uint256[6])(uint256)" '[1,2,3,4,5,6]'

blockHash               0x5ec1115c7b736845406e00480db85fb483545e2c02598bce5816463431c7f52a
blockNumber             8166678
contractAddress
cumulativeGasUsed       258837
effectiveGasPrice       3000000018
gasUsed                 155855
logs                    []
logsBloom               0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
root
status                  1
transactionHash         0x0923cdfac8135194b7724a4ada261c665053aad5c60cc8781c625561b853f6f5
transactionIndex        2
type                    2