Hyperledger Composer, IPFS/Storj, and front end compatibility
I have been researching online a lot, and I have hit a roadblock.
My current situation is that I have a hash inside my blockchain, and this would reference a file that will return this from off chain. My question is that would using IPFS and Storj even be possible using Hyperledger Composer? If so, how would the integration process work? My case right now would require the use of Hyperledger due to its architecture over Ethereum, so it is much preferable to use Hyperledger.
Besides this, I would also like to create a custom front end. Is it possible to work on custom CSS and code, for example, using Angular?
hyperledger-fabric hyperledger blockchain hyperledger-composer ipfs
add a comment |
I have been researching online a lot, and I have hit a roadblock.
My current situation is that I have a hash inside my blockchain, and this would reference a file that will return this from off chain. My question is that would using IPFS and Storj even be possible using Hyperledger Composer? If so, how would the integration process work? My case right now would require the use of Hyperledger due to its architecture over Ethereum, so it is much preferable to use Hyperledger.
Besides this, I would also like to create a custom front end. Is it possible to work on custom CSS and code, for example, using Angular?
hyperledger-fabric hyperledger blockchain hyperledger-composer ipfs
add a comment |
I have been researching online a lot, and I have hit a roadblock.
My current situation is that I have a hash inside my blockchain, and this would reference a file that will return this from off chain. My question is that would using IPFS and Storj even be possible using Hyperledger Composer? If so, how would the integration process work? My case right now would require the use of Hyperledger due to its architecture over Ethereum, so it is much preferable to use Hyperledger.
Besides this, I would also like to create a custom front end. Is it possible to work on custom CSS and code, for example, using Angular?
hyperledger-fabric hyperledger blockchain hyperledger-composer ipfs
I have been researching online a lot, and I have hit a roadblock.
My current situation is that I have a hash inside my blockchain, and this would reference a file that will return this from off chain. My question is that would using IPFS and Storj even be possible using Hyperledger Composer? If so, how would the integration process work? My case right now would require the use of Hyperledger due to its architecture over Ethereum, so it is much preferable to use Hyperledger.
Besides this, I would also like to create a custom front end. Is it possible to work on custom CSS and code, for example, using Angular?
hyperledger-fabric hyperledger blockchain hyperledger-composer ipfs
hyperledger-fabric hyperledger blockchain hyperledger-composer ipfs
asked Nov 19 '18 at 6:31
BrianBrian
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
yes - firstly see storage options discussed in this thread -> Best practice to save files in blockchain -
In Composer you could store the hash as a string on an asset in your model etc etc and you can retrieve via IPFS client search etc once you've got your asset (eg by name or ID) etc .- lastly see this announce for current status of Composer FYI
Thank you for the response! Sadly, I already do know how to store it in theory, and I am quite aware of the fact that IPFS, for example, exists. I was wondering how the integration in code would look like for example?
– Brian
Nov 19 '18 at 22:51
one example is posted here -> using composer-client github.com/Preetam007/hyperledger_composer_file_storage/blob/… (he's updating the ipfs reference to an asset in the Composer business network). As I mentioned, once you have your reference, you can store it as a reference in a string on an asset instance then in your app, build the real URL to retrieve etc.
– Paul O'Mahony
Nov 20 '18 at 12:58
There's loads of resources on the web to describe (ie non-Composer related) how to interact with IPFS from Angular eg medium.com/@GrandSchtroumpf/ipfs-and-angular-6-6165e6fd6e5d in particular app.component.ts shown there
– Paul O'Mahony
Nov 20 '18 at 12:58
This is great! Thank you very much. I'll take a look at these
– Brian
Nov 21 '18 at 9:59
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369399%2fhyperledger-composer-ipfs-storj-and-front-end-compatibility%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
yes - firstly see storage options discussed in this thread -> Best practice to save files in blockchain -
In Composer you could store the hash as a string on an asset in your model etc etc and you can retrieve via IPFS client search etc once you've got your asset (eg by name or ID) etc .- lastly see this announce for current status of Composer FYI
Thank you for the response! Sadly, I already do know how to store it in theory, and I am quite aware of the fact that IPFS, for example, exists. I was wondering how the integration in code would look like for example?
– Brian
Nov 19 '18 at 22:51
one example is posted here -> using composer-client github.com/Preetam007/hyperledger_composer_file_storage/blob/… (he's updating the ipfs reference to an asset in the Composer business network). As I mentioned, once you have your reference, you can store it as a reference in a string on an asset instance then in your app, build the real URL to retrieve etc.
– Paul O'Mahony
Nov 20 '18 at 12:58
There's loads of resources on the web to describe (ie non-Composer related) how to interact with IPFS from Angular eg medium.com/@GrandSchtroumpf/ipfs-and-angular-6-6165e6fd6e5d in particular app.component.ts shown there
– Paul O'Mahony
Nov 20 '18 at 12:58
This is great! Thank you very much. I'll take a look at these
– Brian
Nov 21 '18 at 9:59
add a comment |
yes - firstly see storage options discussed in this thread -> Best practice to save files in blockchain -
In Composer you could store the hash as a string on an asset in your model etc etc and you can retrieve via IPFS client search etc once you've got your asset (eg by name or ID) etc .- lastly see this announce for current status of Composer FYI
Thank you for the response! Sadly, I already do know how to store it in theory, and I am quite aware of the fact that IPFS, for example, exists. I was wondering how the integration in code would look like for example?
– Brian
Nov 19 '18 at 22:51
one example is posted here -> using composer-client github.com/Preetam007/hyperledger_composer_file_storage/blob/… (he's updating the ipfs reference to an asset in the Composer business network). As I mentioned, once you have your reference, you can store it as a reference in a string on an asset instance then in your app, build the real URL to retrieve etc.
– Paul O'Mahony
Nov 20 '18 at 12:58
There's loads of resources on the web to describe (ie non-Composer related) how to interact with IPFS from Angular eg medium.com/@GrandSchtroumpf/ipfs-and-angular-6-6165e6fd6e5d in particular app.component.ts shown there
– Paul O'Mahony
Nov 20 '18 at 12:58
This is great! Thank you very much. I'll take a look at these
– Brian
Nov 21 '18 at 9:59
add a comment |
yes - firstly see storage options discussed in this thread -> Best practice to save files in blockchain -
In Composer you could store the hash as a string on an asset in your model etc etc and you can retrieve via IPFS client search etc once you've got your asset (eg by name or ID) etc .- lastly see this announce for current status of Composer FYI
yes - firstly see storage options discussed in this thread -> Best practice to save files in blockchain -
In Composer you could store the hash as a string on an asset in your model etc etc and you can retrieve via IPFS client search etc once you've got your asset (eg by name or ID) etc .- lastly see this announce for current status of Composer FYI
answered Nov 19 '18 at 11:30
Paul O'MahonyPaul O'Mahony
5,7811413
5,7811413
Thank you for the response! Sadly, I already do know how to store it in theory, and I am quite aware of the fact that IPFS, for example, exists. I was wondering how the integration in code would look like for example?
– Brian
Nov 19 '18 at 22:51
one example is posted here -> using composer-client github.com/Preetam007/hyperledger_composer_file_storage/blob/… (he's updating the ipfs reference to an asset in the Composer business network). As I mentioned, once you have your reference, you can store it as a reference in a string on an asset instance then in your app, build the real URL to retrieve etc.
– Paul O'Mahony
Nov 20 '18 at 12:58
There's loads of resources on the web to describe (ie non-Composer related) how to interact with IPFS from Angular eg medium.com/@GrandSchtroumpf/ipfs-and-angular-6-6165e6fd6e5d in particular app.component.ts shown there
– Paul O'Mahony
Nov 20 '18 at 12:58
This is great! Thank you very much. I'll take a look at these
– Brian
Nov 21 '18 at 9:59
add a comment |
Thank you for the response! Sadly, I already do know how to store it in theory, and I am quite aware of the fact that IPFS, for example, exists. I was wondering how the integration in code would look like for example?
– Brian
Nov 19 '18 at 22:51
one example is posted here -> using composer-client github.com/Preetam007/hyperledger_composer_file_storage/blob/… (he's updating the ipfs reference to an asset in the Composer business network). As I mentioned, once you have your reference, you can store it as a reference in a string on an asset instance then in your app, build the real URL to retrieve etc.
– Paul O'Mahony
Nov 20 '18 at 12:58
There's loads of resources on the web to describe (ie non-Composer related) how to interact with IPFS from Angular eg medium.com/@GrandSchtroumpf/ipfs-and-angular-6-6165e6fd6e5d in particular app.component.ts shown there
– Paul O'Mahony
Nov 20 '18 at 12:58
This is great! Thank you very much. I'll take a look at these
– Brian
Nov 21 '18 at 9:59
Thank you for the response! Sadly, I already do know how to store it in theory, and I am quite aware of the fact that IPFS, for example, exists. I was wondering how the integration in code would look like for example?
– Brian
Nov 19 '18 at 22:51
Thank you for the response! Sadly, I already do know how to store it in theory, and I am quite aware of the fact that IPFS, for example, exists. I was wondering how the integration in code would look like for example?
– Brian
Nov 19 '18 at 22:51
one example is posted here -> using composer-client github.com/Preetam007/hyperledger_composer_file_storage/blob/… (he's updating the ipfs reference to an asset in the Composer business network). As I mentioned, once you have your reference, you can store it as a reference in a string on an asset instance then in your app, build the real URL to retrieve etc.
– Paul O'Mahony
Nov 20 '18 at 12:58
one example is posted here -> using composer-client github.com/Preetam007/hyperledger_composer_file_storage/blob/… (he's updating the ipfs reference to an asset in the Composer business network). As I mentioned, once you have your reference, you can store it as a reference in a string on an asset instance then in your app, build the real URL to retrieve etc.
– Paul O'Mahony
Nov 20 '18 at 12:58
There's loads of resources on the web to describe (ie non-Composer related) how to interact with IPFS from Angular eg medium.com/@GrandSchtroumpf/ipfs-and-angular-6-6165e6fd6e5d in particular app.component.ts shown there
– Paul O'Mahony
Nov 20 '18 at 12:58
There's loads of resources on the web to describe (ie non-Composer related) how to interact with IPFS from Angular eg medium.com/@GrandSchtroumpf/ipfs-and-angular-6-6165e6fd6e5d in particular app.component.ts shown there
– Paul O'Mahony
Nov 20 '18 at 12:58
This is great! Thank you very much. I'll take a look at these
– Brian
Nov 21 '18 at 9:59
This is great! Thank you very much. I'll take a look at these
– Brian
Nov 21 '18 at 9:59
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53369399%2fhyperledger-composer-ipfs-storj-and-front-end-compatibility%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown