在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:flex-dapps/enzypt开源软件地址:https://github.com/flex-dapps/enzypt开源编程语言:JavaScript 100.0%开源软件介绍:Enzypt.ioContentsOverviewThis is the repository for the enzypt.io backend which is hosted at api.enzypt.io. The "official" gateway is hosted by Flex Dapps, however this code can be used to host your own payment verification gateway. Crucially, regardless of whoever hosts the server, no server (running this code) can see what's in the files that are being sold through enzypt. However, it should be noted that since the decryption key is passed around in the URL, it is possible for servers to retrieve this key in the event that you are hitting them (for example by navigating to a hosted frontend) instead of using just the API. Enzypt was made because we thought it was a neat idea, but we don't guarantee anything, this software is provided as-is blah blah blah. How Does it Work?Enzypt.io hosts a frontend application, which is responsible for handling file zipping/encrypting/uploading. Once the files are uploaded, the enzypt backend API is responsible for verifying that a payment is correct. ipfs.enzypt.io is a publicly writable IPFS gateway (and we ask you to use it nicely). In relatively broad strokes:
Make an issue for any questions. API SpecificationAll endpoints should be hit with a POST /sellHit this when we have encrypted and uploaded both the zip file and the meta file to IPFS, and we're ready to entrust an enzypt gateway to release the IPFS hash when someone pays for it. Params
Returns
Buying a FileGET /:urlSlugGet the metadata IPFS hash of a particular file for sale. Returns
POST /randGet a random string to sign to prove that you own a public key. Params
Returns
POST /msgPost a signed message to prove that we own a public key and that we want to purchase a particular file. Params
Returns
POST /buyPost a transaction hash to inform the server of a purchase and receive the IPFS file hash of that purchase. Params
Returns
DevelopmentTo set up Enzypt locally, you will need a
You'll then need to create a file called
Then you can start the backend with:
ConfigurationThe backend relies on INFURA as the web3 provider to verify purchases (transactions). To enable INFURA, you have to add your project ID to |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论