Everyone is equal, and can mine the transactions. Basically you need to share your genesis block with the other party and once they initialize their chain, you have to add their enode addrees as peer.
Permission is built into your blockchain client, where you can decide based on the other party cryptographic information what access will they have.
Monax, Hyperledger fabric, jpmorgan quorum are some examples of permissioned chains..
Based on your comment , you are trying to create a private blockchain.
- Initialize your blockchain in Node A as,
geth --datadir geth_data init genesis.json
Note : Alloc section should be empty in your genesis block
This will initialize your chain in your data directory.
- Now start the geth again , this time without the init
geth --datadir geth_data --port 54259 console
Note, Once geth starts in console mode, enable personal API and create your 1st account, seed your account with some ether in your genesis alloc block. For adding a peer via console you should enable admin API.
- Get your enode address of Node A with the command
replace the [::] with your IP of Node A.
Now you are ready to connect to another Node B.
4.In Node B,keep your genesis.json , your A node's enode address handy.
Initialize the chain with the genesis block that you have from A.
Once initialized, you can check in either machines if they have any peers
- Then add in Node B, Node A
Once this is done, the two Nodes now are connected and would receive any contracts or events happening in either A or B.
You can check this by,
- Please note this linkage between the nodes would only stay until one of the node goes down. To make the linkage permanent- Add the node as a static peer.
- Create a file static_nodes.json and place it your data directory. Please refer to the links below.
How to use static-nodes.json / trusted-nodes.json to prevent connection loss on private network?