{"id":25412313,"url":"https://github.com/datachainlab/lcp-solidity","last_synced_at":"2026-03-07T16:02:36.444Z","repository":{"id":195934469,"uuid":"693655549","full_name":"datachainlab/lcp-solidity","owner":"datachainlab","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-12T10:46:14.000Z","size":705,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-13T03:33:24.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datachainlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-19T13:04:26.000Z","updated_at":"2025-03-12T07:57:35.000Z","dependencies_parsed_at":"2023-09-20T07:28:58.791Z","dependency_job_id":"fbb82120-b6d8-4485-86bf-00a250080517","html_url":"https://github.com/datachainlab/lcp-solidity","commit_stats":null,"previous_names":["datachainlab/lcp-solidity"],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Flcp-solidity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Flcp-solidity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Flcp-solidity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datachainlab%2Flcp-solidity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datachainlab","download_url":"https://codeload.github.com/datachainlab/lcp-solidity/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248918743,"owners_count":21183246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-16T11:18:42.354Z","updated_at":"2026-03-07T16:02:36.382Z","avatar_url":"https://github.com/datachainlab.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lcp-solidity\n\nlcp-solidity is an implementation of [lcp client](https://docs.lcp.network/protocol/lcp-client) in solidity. It can be integrated with [ibc-solidity](https://github.com/hyperledger-labs/yui-ibc-solidity).\n\nAn e2e demo is available [here](https://github.com/datachainlab/cosmos-ethereum-ibc-lcp).\n\n**DISCLAIMER: This repository has not been audited yet, so use it at your own risk.**\n\n## Gas cost\n\n- registerEnclaveKey: 500k: first registration in the client or signing key changed(very rare)\n- registerEnclaveKey: 160k\n- updateState: 71k\n- verifyMembership: 15k\n- verifyNonMembership: 14k\n\n## How to generate test data\n\nYou can find the LCP commitment data for the test in `./test/data`.\n\nAlso, you can generate the test data with the following steps:\n```\n$ git clone https://github.com/datachainlab/lcp-cgen\n$ cd ./lcp-cgen\n# if execute it under non-sgx environment, you must enable anoption `--features=simulation`\n$ cargo build -r --features=simulation\n# Example for using RA simulation\n$ export LCP_PATH=/path/to/lcp-repo\n$ ./target/release/lcp-cgen \\\n    --simulate \\\n    --signing_cert_path=${LCP_PATH}/tests/certs/signing.crt.der \\\n    --signing_key=${LCP_PATH}/tests/certs/signing.key \\\n    --enclave=${LCP_PATH}/bin/enclave.signed.so \\\n    --out=/path/to/testdatadir \\\n    --eknum=1 \\\n    --commands \\\n        wait_blocks:1 \\\n        update_client:0 \\\n        verify_channel:0 \\\n        wait_blocks:1 \\\n        update_client:0 \\\n        verify_packet:0 \\\n        verify_packet_receipt_absence:0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Flcp-solidity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatachainlab%2Flcp-solidity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatachainlab%2Flcp-solidity/lists"}