Performing bilateral negotiations on a blockchain
An example operation may include one or more of identifying a proposal associated with a first blockchain member and a second blockchain member, generating a key/value pair for the proposal, creating a writeset including the key/value pair, storing the writeset in a blockchain, receiving digital signatures at the blockchain from the first blockchain member and the second blockchain member, and validating the proposal as an agreement.
1 . A method, comprising:
by a blockchain in a blockchain network, identifying a proposal created by a first blockchain member in the blockchain network to enter into an agreement with a second blockchain member in the blockchain network;
by the blockchain, executing a smart contract in response to the proposal being identified, wherein the smart contract is configured to perform:
generating a key/value pair for the proposal,
generating a notification comprising the proposal and a different key/value pair, wherein the notification comprises a universally unique identifier (UUID) that identifies the agreement and names of the first blockchain member and the second blockchain member,
creating a writeset comprising the key/value pair and the different key/value pair,
storing the writeset in the blockchain, and
validating the proposal as an agreement between the first blockchain member and the second blockchain member in response to receiving digital signatures at the blockchain from the first blockchain member and the second blockchain member.
2 . The method of claim 1 , further comprising:
invoking a sending function of a smart contract to store the proposal in a notification as part of a blockchain transaction;
identifying a request to access the proposal; and
invoking a proposal access function of the smart contract.
3 . The method of claim 2 , wherein the proposal access function is invoked with a private key associated with the second blockchain member.
4 . The method of claim 1 , further comprising:
receiving the proposal and a private key associated with the first blockchain member at a computing node configured to execute the smart contract.
5 . The method of claim 1 , wherein the agreement comprises the key/value pair and the different key/value pair.
6 . A hardware-implemented computing node in a blockchain network, the hardware-implemented computing node comprising:
a memory storing one or more instructions; and
a processor that, when executing the one or more instructions, is configured to:
identify a proposal created by a first blockchain member in the blockchain network to enter into an agreement with a second blockchain member in the blockchain network;
execute a smart contract in response to the proposal being identified, wherein the smart contract configures configured the processor to:
generate a key/value pair for the proposal,
generate a notification comprising the proposal and a different key/value pair, wherein the notification comprises a universally unique identifier (UUID) that identifies the agreement and names of the first blockchain member and the second blockchain member,
create a writeset comprising the key/value pair and the different key/value pair,
store the writeset in a blockchain implemented by the hardware-implemented computing node, and
validate the proposal as an agreement between the first blockchain member and the second blockchain member in response to receiving digital signatures at the blockchain from the first blockchain member and the second blockchain member.
7 . The system of claim 6 , wherein the hardware-implemented computing node is further configured to:
invoke a send function of a smart contract to store the proposal in a notification as part of a blockchain transaction;
identify a request to access the proposal; and
invoke a proposal access function of the smart contract.
8 . The system of claim 7 , wherein the proposal access function is invoked with a private key associated with the second blockchain member.
9 . The system of claim 6 , wherein the hardware-implemented computing node is further configured to:
receive the proposal and a private key associated with the first blockchain member device.
10 . The system of claim 6 , wherein the agreement comprises the key/value pair and the different key/value pair.
11 . A non-transitory computer-readable storage medium storing one or more instructions that, when executed by a processor in a blockchain network, cause the processor to perform:
identifying a proposal created by a first blockchain member in the blockchain network to enter into an agreement with a second blockchain member in the blockchain network;
by the blockchain, executing a smart contract in response to the proposal being identified, wherein the smart contract is configured to perform:
generating a key/value pair for the proposal,
generating a notification comprising the proposal and a different key/value pair, wherein the notification comprises a universally unique identifier (UUID) that identifies the agreement and names of the first blockchain member and the second blockchain member,
creating a writeset comprising the key/value pair and the different key/value pair,
storing the writeset in the blockchain, and
validating the proposal as an agreement between the first blockchain member and the second blockchain member in response to receiving digital signatures at the blockchain from the first blockchain member and the second blockchain member.
12 . The non-transitory computer-readable storage medium of claim 11 , wherein the one or more instructions further cause the processor to perform:
invoking a sending function of a smart contract to store the proposal in a notification as part of a blockchain transaction;
identifying a request to access the proposal; and
invoking a proposal access function of the smart contract.
13 . The non-transitory computer-readable storage medium of claim 12 , wherein the proposal access function is invoked with a private key associated with the second blockchain member.
14 . The non-transitory computer-readable storage medium of claim 11 , wherein the one or more instructions further cause the processor to perform:
receiving the proposal and a private key associated with the first blockchain member at a computing node configured to execute the smart contract.