{ "contractName": "IPatriciaTreeBase", "abi": [ { "constant": true, "inputs": [], "name": "getRootHash", "outputs": [ { "name": "rootHash", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "getRootEdge", "outputs": [ { "components": [ { "name": "node", "type": "bytes32" }, { "components": [ { "name": "data", "type": "bytes32" }, { "name": "length", "type": "uint256" } ], "name": "label", "type": "tuple" } ], "name": "e", "type": "tuple" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "name": "hash", "type": "bytes32" } ], "name": "getNode", "outputs": [ { "components": [ { "components": [ { "name": "node", "type": "bytes32" }, { "components": [ { "name": "data", "type": "bytes32" }, { "name": "length", "type": "uint256" } ], "name": "label", "type": "tuple" } ], "name": "children", "type": "tuple[2]" } ], "name": "n", "type": "tuple" } ], "payable": false, "stateMutability": "view", "type": "function" } ], "devdoc": { "methods": { "getNode(bytes32)": { "params": { "hash": "The `keccak256` hash of the actual key" }, "return": "n `Data.Node` for key `hash`" }, "getRootEdge()": { "return": "e The root `Data.Edge`" }, "getRootHash()": { "details": "This value is a keccak256 hash of the rootEdge: `keccak256(Edge.node, Edge.label.length, Edge.label.data)`", "return": "rootHash The `bytes32` hash value" } }, "title": "Interface for Patricia trees" }, "userdoc": { "methods": { "getNode(bytes32)": { "notice": "Get the node with the given key" }, "getRootEdge()": { "notice": "Get the root edge" }, "getRootHash()": { "notice": "Get the root hash" } }, "notice": "More info at: https://github.com/chriseth/patricia-trie" } }