{"id":18663290,"url":"https://github.com/moleculeprotocol/ipnft-samples","last_synced_at":"2025-11-06T07:30:39.990Z","repository":{"id":121181715,"uuid":"585117494","full_name":"moleculeprotocol/ipnft-samples","owner":"moleculeprotocol","description":"code snippets that explain certain aspects of the IP-NFT minting process","archived":false,"fork":false,"pushed_at":"2023-09-10T13:07:34.000Z","size":419,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-27T16:45:40.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/moleculeprotocol.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-04T11:10:06.000Z","updated_at":"2023-09-10T09:44:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"90238dd1-ef1b-4a08-b9e6-8c89def7718a","html_url":"https://github.com/moleculeprotocol/ipnft-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculeprotocol%2Fipnft-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculeprotocol%2Fipnft-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculeprotocol%2Fipnft-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moleculeprotocol%2Fipnft-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moleculeprotocol","download_url":"https://codeload.github.com/moleculeprotocol/ipnft-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239487477,"owners_count":19647002,"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-11-07T08:15:56.545Z","updated_at":"2025-11-06T07:30:39.957Z","avatar_url":"https://github.com/moleculeprotocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo code for IP-NFT implementers\n\nSome of these examples rely on an API key for [web3.storage](https://web3.storage). Get one and put it in a local ` .env` file.\nFor the crypto-related scripts to run you need add a _private key_ of an Ethereum account as `PRIVATE_KEY`to the local`.env` file. You can copy this from your Metamask wallet.\n\n**!!!!NEVER USE ACCOUNTS THAT YOU ALSO WOULD USE ON A MAIN NET HERE!!!!**\n\n## Checksums\n\nCompute and verify a file's checksum using [multiformats](https://www.npmjs.com/package/multiformats)\n\n```\nyarn ts-node ./checksum.mts \u003cfile\u003e\n```\n\n## Uploads\n\nuploads files to IPFS using web3.storage\n\n```\nyarn ts-node ./upload.mts \u003cfile\u003e\n```\n\n## Lit encryption\n\nReads and encrypts the provided file. Requires PRIVATE_KEY to sign in with Lit\n\n```\nyarn ts-node ./lit.mts \u003cagreement.pdf\u003e\n```\n\n## terms signature\n\nReads the agreements from a preliminary ipnft.json file and assembles and signs the required terms acceptance message\n\n```\nyarn ts-node ./terms.mts \u003ccurrent-ipnft-json\u003e\n```\n\n## Schema verification\n\nretrieves JSON schema and IP-NFT metadata from a public location and verifies its validity\n\n```\nyarn ts-node ./verifyMetadata.mts ipfs://bafy...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculeprotocol%2Fipnft-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoleculeprotocol%2Fipnft-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoleculeprotocol%2Fipnft-samples/lists"}