Please explain the concept of wallet in playground.
I cannot find information for this in documentation.
"Wallet" is how we describe the contents of the ~/.hfc-key-store/ or ~/.composer-credentials/ directory.
This directory is used by the HLF Node SDK as the default store for user credentials (public and private certificates).
In addition to the certs, Composer maps the certificates to Composer participant identities (in the identity registry), so that when a transaction is submitted (authenticated using a Fabric certificate) the associated Composer participant can be retrieved by the runtime (see the getCurrentParticipant() API). This mapping from cert to participant is managed using the composer identity CLI commands, or can be created in Playground using the interface.
We are working on a new UI design to manage certificates, connection profiles and identity mapping which should roll out over the coming weeks.
Related
I have created a basic network in HLF
Single Orderer
2 Organization, has 2 peers each
Channel: finance
Now, If I wanted to add one more peer or create any other channel. I have to add the configuration in the crypto-config.yaml and configtxgen.yaml and execute peer and channel-related commands in the cli as per my understanding.
QUESTION
Is there any way that, I can create any REST API in spring boot to create the above process?
SDK's available for adding peer's organization
Check this golang : link
Also there are different SDK for java, node.js.
Yes, but if you want to add a new organization or a new peer, you must use the fabric-SDK for those operations; this channel configuration updates will be the responsibility of an organization admin.
The SDK also provides a client for Hyperledger's certificate authority.
FABRIC SDK:
fabric-sdk-node doc: https://hyperledger.github.io/fabric-sdk-node/
fabric-sdk-node: https://github.com/hyperledger/fabric-sdk-node/
fabric-sdk-java: https://github.com/hyperledger/fabric-sdk-java
fabric-sdk-go: https://github.com/hyperledger/fabric-sdk-go
I am working on some projects with Hyperledger Fabric, currently using the IBM VS Code Extension. The chaincode is written in Go, as is the client application which provides a RESTful API, using the Go Fabric SDK. However, I am having trouble connecting the client application to the chaincode. Most of the tutorials and examples I have seen use Node.js as the client and it seems the Node SDK needs less configuration.
As far as I understand it, the steps should be similar to the following but more detailed information seems to be a little bit lacking when it comes to the Golang Fabric SDK.
The client application needs the following information to be able to communicate with the blockchain network:
The enroll ID and secret of the application identity (used to generate a cert and private key), or the certificate and private key directly
The connection profile
The smart contract name
The name of the channel the smart contract was instantiated on
Use the certificate and private key of the application identity, along with CA endpoint information inside your connection profile
In the VSCode plugin
Register an 'application' identity in the 'Fabric Wallets' section
Export the connection profile from the 'Fabric Gateway' section
Export the application identity's wallet
Update code to point to the exported connection profile
Update code to point to the exported wallet
As far as I can tell, the connection profile and other steps needed to connect the SDK to the VS Code Network should be pretty 'standard' so I wonder if someone knows of a working example?
Thanks for the collective help!
Unfortunately you are going to struggle with this at the moment. Wallets are not compatible with the Go SDK currently. Also the Go SDK doesn't quite conform (or at least it didn't the last time I tried it) to the connection profile specification so the connection profile from the VS Code extension won't work without some minor modification and didn't work with a CA not using TLS (IIRC I patched the Go SDK to make it work).
There is work underway to bring the Gateway/Wallet programming model to the Go SDK which will then make working with the VS Code extension a lot easier, but I don't know when a version of the Go SDK with a working implementation will be available.
I am trying to build a mobile application working against a blockchain network. The thing i am not understanding is how the user actually becomes a member( registered ) in the network. Suppose user open’s our applications than what credentials does he enter so that he becomes a participant in the network.
In Composer the first thing to do is to create a participant, then using the Admin Card, Issue an Identity to the participant. (Identity is a Hyperledger Fabric concept, and Composer is built on top of Fabric.) Once the Identity has been Issued (and a card created) you can use that Identity.
I would suggest trying out Participant and Identities using the Composer Playground (either online, or installed locally).
If you haven't seen them, then the Composer Tutorials are a good resource, then perhaps look at this tutorial that uses the Composer Rest Server in Multi-User mode.
Running into this error on forge and I'm not sure what to try next. Here's the situation and what I've tried thus far.
Cloning into '{site_name}'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists
This forge account is for the company I work for which has an associated organization on github of which I am have an owner role. Forge is not able to read from any of the repositories owned by this organization. The above error started occurring after the owner of the github account logged into forge was removed from the organization.
What I've tried
Unlinking/relinking github in forge under the Source Control tab.
Set organization, third-party application access policy to no restrictions
Tried having other team members in the organization sign into github on forge
Adding the ssh key forge supplies for any given site to the deploy key section for that site's associated repository. This always yields the same error, key already in use.
Double, triple, quadruple checked the spelling of the repository name/path
I've tried reaching out to the forge tech support, but none of their suggestions have worked so far.
Another note, I am able to have forge connect to any of my personal repositories but none of the ones I have created for under the organization.
Has anyone else had issues related to github organizations on forge?
I had the same issue. When we removed one of our ex-developers account from the organization, forge couldn't access any of our repo. The issue we was because of the ssh key. The forge ssh key of the repo was added to that ex-developer's account, removed it from his account and added to to an existing devs, who is on the organization account and it worked.
*You can get the ssh key from the meta tab on the forge servers page
Ok so here is what I've got:
Setup local fabric using docker compose.
Deployed business network with basic acl, created and enrolled participants, as well as assets using admin id and secret.
composer-rest-server using participants id and secret.
Can still see asset (despite DENY acl) in explorer.
I've posted the .bna and verification steps in github.
https://github.com/wajid-poernomo/sample-business-network
Be great to get some input here as there seem to be lot's of contributors who treat acl as a given. Many thanks in advance.
In summary, the problem was due to not having an attribute set on membership services as described here.
"composer network ping" won't show the participant after "composer identity issue"