Store contributor profile data in IPFS
This stores the GitHub username and UID in IPFS, and stores the resulting IPFS hash in the contract. Now we can remove the GitHub profile data from the contract entirely.
This commit is contained in:
@@ -18,6 +18,7 @@ export default Ember.Service.extend({
|
||||
storeFile(content) {
|
||||
let ipfs = this.get('ipfs');
|
||||
return ipfs.add(new ipfs.Buffer(content)).then(res => {
|
||||
Ember.Logger.debug('[ipfs] stored content in IPFS', content, res[0].hash);
|
||||
return res[0].hash;
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user