leapdao / bridge-ui

dApp for interacting with LeapDAO chain
https://testnet.leapdao.org
GNU General Public License v3.0
11 stars 5 forks source link

create a IPFS storage solution for the governance proposals #270

Closed simonweniger closed 4 years ago

simonweniger commented 4 years ago

Scope

Deliverables

Gains for the project

Roles

bounty gardener: @simonweniger / 10% bounty worker: @troggy / 75% bounty reviewer: name / 15%

troggy commented 4 years ago

swapped workers @johannbarbie to @troggy as agreed on a General Tactical today

troggy commented 4 years ago

@cyan-one @johannbarbie IPFS use CID to reference uploaded objects. When converted to hex string it produces value like 0x122030239522d3f23d0c33df6a930164911b3da6d0b32ec65c119f735e94ccf5b812 which is 34 bytes and thus doesn't fit into contract.

Should I cut metadata from CID (not great! could break in future) or should we increase make hash field in contract to be bytes instead?

troggy commented 4 years ago

decided to go with cutting the IPFS preamble as IPFS is sha256 only at the moment

troggy commented 4 years ago

via #277