{"id":29068600,"url":"https://github.com/mixinnetwork/nfo","last_synced_at":"2025-06-27T11:08:44.628Z","repository":{"id":45797659,"uuid":"403131681","full_name":"MixinNetwork/nfo","owner":"MixinNetwork","description":"🏆 A decentralized layer to support NFT on Mixin Messenger and Kernel.","archived":false,"fork":false,"pushed_at":"2024-03-13T22:59:03.000Z","size":273,"stargazers_count":17,"open_issues_count":4,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-22T06:54:13.153Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/MixinNetwork.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":"2021-09-04T18:42:17.000Z","updated_at":"2023-03-08T07:53:53.000Z","dependencies_parsed_at":"2024-06-20T05:45:04.605Z","dependency_job_id":null,"html_url":"https://github.com/MixinNetwork/nfo","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/MixinNetwork/nfo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MixinNetwork%2Fnfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MixinNetwork%2Fnfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MixinNetwork%2Fnfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MixinNetwork%2Fnfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MixinNetwork","download_url":"https://codeload.github.com/MixinNetwork/nfo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MixinNetwork%2Fnfo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262244893,"owners_count":23281027,"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-06-27T11:08:40.137Z","updated_at":"2025-06-27T11:08:44.615Z","avatar_url":"https://github.com/MixinNetwork.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NFO\n\nA decentralized layer to support NFT on Mixin Kernel. This MTG sends back an NFT to the receiver whenever it receives a transaction with valid mint extra.\n\n## Mint NFT\n\nA NFT token is uniquely minted by `collection` and `id`. And you can optionally include a `hash` to make the represented content checksum permanently linked to the token.\n\n- `collection` must be a valid UUID string, which represents a collection, e.g. CryptoPunks. Everyone can start the collection if it is not minted yet.\n- `id` must be the big-endian bytes of an integer, which is the unique identifier in the collection, e.g. 1234. Only the collection creator can mint a new token in it, while everyone can mint in the default collection.\n- `hash` is the rule defined checksum of the token metadata, and the metadata should be available at `https://some-nft-host/hash.json`.\n\nAfter you have all these fields ready, you can create a memo using code below, then send 0.001XIN to the MTG with the memo attached.\n\n```golang\nnfo := nft.BuildMintNFO(collection, id, hash)\nmemo := base64.RawURLEncoding.EncodeToString(nfo)\n```\n\n## Metadata\n\nThe MTG doesn't maintain metadata for tokens, it's up to the token creators and token browsers to generate and verify the metadata according to the token hash. We do propose a sample metadata format, and it could be easily extended for further needs.\n\n```json\n{\n  \"collection\": {\n    \"id\": \"collection-uuid\",\n    \"name\": \"collection name\",\n    \"description\": \"description\",\n    \"icon\": {\n      \"hash\": \"hash of the collection icon\",\n      \"url\": \"https url for the icon\"\n    }\n  },\n  \"token\": {\n    \"id\": \"token-identifier\",\n    \"name\": \"token name\",\n    \"description\": \"description\",\n    \"icon\": {\n      \"hash\": \"hash of the token icon\",\n      \"url\": \"https url for the icon\"\n    },\n    \"media\": {\n      \"hash\": \"hash of the token media\",\n      \"url\": \"https url for the media\",\n      \"mime\": \"the media mime type\"\n    }\n  },\n  \"checksum\": {\n    \"fields\": [\"collection.id\", \"collection.name\", \"token.id\", \"token.name\", \"token.media.hash\"],\n    \"algorithm\": \"sha256\"\n  }\n}\n```\n\nThe metadata file can be modified by adding more properties, and should be verified as valid when the following code returns true.\n\n```golang\ncontent = concat all the values of checksum.fields\nchecksum = checksum.algorithm content\nif checksum not equals to hash {\n  return false\n}\n\nfor param in checksum.fields {\n  if param is not a hash {\n    continue\n  }\n  url = get url param for the hash\n  content = fetch url\n  checksum = checksum.algorithm content\n  if param not equals to checksum {\n    return false\n  }\n}\n\nreturn true\n```\n\n## Run Node\n\nCopy config.example.toml to ~/.nfo/config.toml, and fill all the app related fields.\n\n```bash\nnfo -c ~/.nfo/config.toml -d ~/.nfo/data\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixinnetwork%2Fnfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmixinnetwork%2Fnfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixinnetwork%2Fnfo/lists"}