{"id":24786587,"url":"https://github.com/cardanosolutions/zhuli","last_synced_at":"2025-09-13T01:44:29.830Z","repository":{"id":257443854,"uuid":"852711104","full_name":"CardanoSolutions/zhuli","owner":"CardanoSolutions","description":"A hot/cold solution for delegate representatives on Cardano","archived":false,"fork":false,"pushed_at":"2024-09-24T12:40:47.000Z","size":330,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T15:14:29.329Z","etag":null,"topics":["cardano","delegate","drep","governance","hot-cold-storage","proxy"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CardanoSolutions.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":"2024-09-05T09:34:17.000Z","updated_at":"2024-10-06T19:19:53.000Z","dependencies_parsed_at":"2024-12-03T20:16:40.955Z","dependency_job_id":null,"html_url":"https://github.com/CardanoSolutions/zhuli","commit_stats":null,"previous_names":["cardanosolutions/proxy-dreps"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fzhuli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fzhuli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fzhuli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CardanoSolutions%2Fzhuli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CardanoSolutions","download_url":"https://codeload.github.com/CardanoSolutions/zhuli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236201111,"owners_count":19111407,"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":["cardano","delegate","drep","governance","hot-cold-storage","proxy"],"created_at":"2025-01-29T15:14:32.047Z","updated_at":"2025-01-29T15:14:32.834Z","avatar_url":"https://github.com/CardanoSolutions.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n  \u003cimg width=\"500\" src=\".github/logo.png\" /\u003e\n  \u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/CardanoSolutions/zhuli/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release/CardanoSolutions/zhuli?style=for-the-badge\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/CardanoSolutions/zhuli/actions/workflows/continuous-integration.yml\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/CardanoSolutions/zhuli/continuous-integration.yml?style=for-the-badge\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/CardanoSolutions/zhuli/blob/main/LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/github/license/CardanoSolutions/zhuli?style=for-the-badge\" /\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/p\u003e\n\n## Overview\n\nA validator \u0026 companion command-line tool to provide hot/cold account management to delegate representatives (a.k.a DReps) on Cardano. The on-chain validator provides an authentication mechanism for an administrator multisig script (m-of-n type), itself granting powers to multisig-like delegate to manage voting stake rights.\n\n### Features\n\n- [x] Fixed DRep ID for unlimited delegates, entirely defined by the administrator configuration.\n- [x] Delegation of voting rights as a single transaction.\n- [x] Revocation of a delegate as a single transaction.\n- [x] Revokation \u0026 redelegation possible as a single transaction.\n- [x] No datum, the state is fully captured in minted assets trapped in the validator.\n- [x] Simplified off-chain management and contract flow thanks to a [companion command-line tool](./cli)\n\n### Todo\n\n- [ ] Extend the setup to also support a second type of delegate for block production rights.\n\n## Configuration\n\nThe administrator script can be configured direction in the `aiken.toml` as follows:\n\n```toml\n[config.default]\nquorum = 1 # How many administrators signatories are required to approve actions\n\n# List of administrators (verification key hashes)\n[[config.default.administrators]]\nbytes = \"000000000000000000000000000000000000000000000000000a11ce\"\nencoding = \"base16\"\n\n[[config.default.administrators]]\nbytes = \"00000000000000000000000000000000000000000000000000000b0b\"\nencoding = \"base16\"\n```\n\n\u003e [!TIP]\n\u003e Different keys can be configured for different environments. Instead of `default`, use whatever environment name suits you and re-compile the contract accordingly using aiken's cli. For example, you can define custom keys for an environment `foo` as:\n\u003e\n\u003e ```toml\n\u003e [config.foo]\n\u003e quorum = 1\n\u003e\n\u003e [[config.foo.administrators]]\n\u003e bytes = \"0000000000000000000000000000000000000000000000000000f00\"\n\u003e encoding = \"base16\"\n\u003e ```\n\u003e\n\u003e Then, using `aiken`, simply do:\n\u003e\n\u003e ```\n\u003e aiken build --env foo\n\u003e ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardanosolutions%2Fzhuli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcardanosolutions%2Fzhuli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcardanosolutions%2Fzhuli/lists"}