You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ServerPlugin.sendSignedProposal function in @hyperledger/cactus-plugin-ledger-connector-fabric-socketio package always calls channel.generateUnsignedProposal fabric API via ServerPlugin.InvokeSendSignedProposal function. It also signs the proposal using a certificate and private key sent from BLP or read from connector's local filesystem. The function returns an error if certificate and private key are not found in the parameter and it failed to read them from local filesystem.
alternative
The ServerPlugin.sendSignedProposal function in the connector can be modified in a backward compatible way: skip
call to channel.generateUnsignedProposal and sign steps when parameter to ServerPlugin.sendSignedProposal includes a signed request and the parameter does not include certificate and private key and the function failed to read the pair from local filesystem.
This alternative is confusing to BLP developer and a developer can easily mix up two options: send both signed request and certificate-key pair.
Therefore I prefer deleting signing functionality from the connector.
The text was updated successfully, but these errors were encountered:
Izuru-san request:
generateUnsignedProposal
function of fabric SDK callable via Validator-Verifier from BLP.ServerPlugin.sendSignedProposal
function inServerPlugin.ts
in a way thatchannel.generateUnsignedProposal
examples/cactus-example-discounted-asset-trade
to match the modifications described in previous itemsrelevant modules:
current status
The
ServerPlugin.sendSignedProposal
function in@hyperledger/cactus-plugin-ledger-connector-fabric-socketio
package always callschannel.generateUnsignedProposal
fabric API viaServerPlugin.InvokeSendSignedProposal
function. It also signs the proposal using a certificate and private key sent from BLP or read from connector's local filesystem. The function returns an error if certificate and private key are not found in the parameter and it failed to read them from local filesystem.alternative
The
ServerPlugin.sendSignedProposal
function in the connector can be modified in a backward compatible way: skipcall to
channel.generateUnsignedProposal
and sign steps when parameter toServerPlugin.sendSignedProposal
includes a signed request and the parameter does not include certificate and private key and the function failed to read the pair from local filesystem.This alternative is confusing to BLP developer and a developer can easily mix up two options: send both signed request and certificate-key pair.
Therefore I prefer deleting signing functionality from the connector.
The text was updated successfully, but these errors were encountered: