freesig / pixel_chain

A art game SRML based on Parity's Substrate blockchain
0 stars 0 forks source link

Add initial picture to IPFS #3

Open freesig opened 5 years ago

freesig commented 5 years ago

Description

We need a way to add a picture to the IPFS and get it's address back.

Setup

Todo

freesig commented 5 years ago

Looks like js might be a better way of interacting with IPFS. I think maybe I should crate a substrate React UI and add this module with a UI component that allows the user to add a picture to IPFS

freesig commented 5 years ago

Another option is https://polkadot.js.org/api/METHODS_RPC.html#json-rpc

freesig commented 5 years ago

Currently the js-ipfs isn't working for me, I will just manually enter pictures into ipfs now to test and then come back to making an interface for this process

freesig commented 5 years ago

I think the ipfs hash can probably be stored as H256