{"id":17286244,"url":"https://github.com/devrandom/java-smartcolors","last_synced_at":"2025-03-26T17:16:21.143Z","repository":{"id":21489680,"uuid":"24808541","full_name":"devrandom/java-smartcolors","owner":"devrandom","description":"Java version of python-smartcolors","archived":false,"fork":false,"pushed_at":"2016-03-02T00:32:29.000Z","size":502,"stargazers_count":0,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-31T22:06:37.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devrandom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-05T04:31:55.000Z","updated_at":"2015-04-10T21:44:56.000Z","dependencies_parsed_at":"2022-08-17T18:00:44.316Z","dependency_job_id":null,"html_url":"https://github.com/devrandom/java-smartcolors","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Fjava-smartcolors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Fjava-smartcolors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Fjava-smartcolors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devrandom%2Fjava-smartcolors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devrandom","download_url":"https://codeload.github.com/devrandom/java-smartcolors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245699263,"owners_count":20657987,"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":"2024-10-15T09:58:48.588Z","updated_at":"2025-03-26T17:16:21.112Z","avatar_url":"https://github.com/devrandom.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Welcome to _SmartColors_, a improved color kernel allowing:\n\n* Untrusted asset servers serving SPV proofs\n* Atomic swaps\n\n# Prerequisites\n\n```\n    git clone https://github.com/devrandom/bitcoinj\n    cd bitcoinj\n    mvn install\n```\n\n# Compile\n\nClone this repo, and compile:\n\n`mvn package`\n\n# Try things out\n\n```\n    cd tools\n    # Create wallet from seed and scan\n    bin/colortool --mnemonic \"click uniform area entire lamp engine sure enjoy all adult pigeon size\" scan\n    # Dump existing wallet, and show deposit address\n    bin/colortool dump\n    # Scan existing wallet\n    bin/colortool scan\n```\n\nAsset definitions are in `oil.smartcolor` and `gold.smartcolor` in the `tools` module.\n\n# Issuance\n\nAfter scanning a wallet that has a Bitcoin balance:\n\n```\n    bin/colortool issue NAME 1000000\n```\n\nThis will create two files: `NAME.smartcolor` and `NAME.scdef`.  The `smartcolor` JSON file is a bare-bones asset definition with\njust one item of metadata - the name.  You can add other metadata, such as divisibility, as needed.  The `scdef` file\ncontains the consensus definition and can be imported into the SmartColors server.\n\nWait for the issuance transaction to confirm before proceeding.\n\n## Adding to server\n\n```\n    # use --testnet for TestNet3\n    ./smartassetctl addcolordef NAME.scdef\n    ./smartassetctl scan\n```\n\n## Adding to clients\n\nThe augmented smartcolor JSON file should be added to the resources directory in this tools module in `src/main/resources/assets`.\nFor now also add to SmartTools.addBuiltins().\n\nIn the SmartWallet project add to `wallet/assets/smartassets`.  For existing wallets, you have to clear data and restore from seed.\n\nThe JSON file can also be put up on a web server to let users manually add.\n\n## Recompile and rescan\n\nFrom the root directory of this repo:\n\n```\n    mvn clean package\n    cd tools\n    bin/colortool --mnemonic \"click uniform area entire lamp engine sure enjoy all adult pigeon size\" scan\n    bin/colortool dump\n```\n\nYou should see the new asset in the balances.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrandom%2Fjava-smartcolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevrandom%2Fjava-smartcolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevrandom%2Fjava-smartcolors/lists"}