Step wise guide to integrate your BAP or BPP to beckn gateway.
For starter please have a look at this URL https://beckn-registry.readthedocs.io/en/latest/index.html
What you will need:
- A working API where request can reach
- ED25519 key pair for singing the request
- An account on https://registry.becknprotocol.io/ (sign up via google).
- BG Gateway url : https://gateway.becknprotocol.io/bg/
Regsiter to registry and and add yourself as network participant. A unique ID is needed hence your applications FQDN domain is suggested, you can use any text for ID as long as its uniquue on network at that moment.
Once participant is added, details about participant need to be filled. Please visit https://registry.becknprotocol.io/network_domains/index to see available domain, only these domain will be used to commmunicate on beckn network.
Navigate to network participant and click on edit button on your entry. Click on Network role tab. Here you can register as BAP or BPP
One example where one network participant has registerred as BAP and BPP both.
Make sure status is subscribed while filling the network role information to be able to send and recieve request.
make sure to add the operating region.
Participant key :
Signing public key and encryption key need to be added to veify the legitimate requesters.
Generate a pair of private key , publick key using ED25519
ssh-keygen -t ed25519
OR for testing, use any of the online tool. one working example as of now is: https://ed25519.herokuapp.com/
other URLS: https://registry.becknprotocol.io/crypto_keys/generate/ed25519:256 https://registry.becknprotocol.io/crypto_keys/generate/x25519:256
Once you have the keys, navigate to participant key tab on network participant information page. and add the information
Once added, your entry on network is complete and you should be able to send request given that you have signed the requests.