Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cactus-plugin-ledger-connector-fabric): support delegated (offline) signatures #2644

Merged
merged 1 commit into from
Oct 10, 2023

Commits on Oct 10, 2023

  1. feat(cactus-plugin-ledger-connector-fabric): support delegated (offli…

    …ne) signatures
    
    - Add new `RunDelegatedSignTransactionEndpointV1` endpoint for delegated / offline signing.
        Takes `signerCertificate` and `signerMspID`, uses `signCallback` on connector to sign messages.
        Sign must be implemented by a user, can contain any logic
        (contacting 3'rd party services, reading from secure sources, etc…).
        Interface is similar to transact. Supports private transactions.
    - Refactor transact endpoint: Use common logic for handling response format. with delegated transact
    - Refactor logic of choosing ednorsers in transact endpoint. Previously both `endorsingPeers`
        and `endorsingParties` were selecting organizations in sligly different way under different
        circumstances. Now `endorsingPeers` selectes peers and `endorsingOrgs` selects orgs for all
        cases (query, send, privatesend) in both transact and transact with delegated sign.
        This is more consistent and predictable.
    - Add new socketio endpoint `SubscribeDelegatedSign` for monitoring new blocks with delegated sign.
    - Use common error handling in getblock, transact and transact delgated endpoints.
    - Add functional tests for delegated signing feature.
    
    Depends on: hyperledger-cacti#2598
    
    Signed-off-by: Michal Bajer <michal.bajer@fujitsu.com>
    outSH authored and petermetz committed Oct 10, 2023
    Configuration menu
    Copy the full SHA
    b1718fe View commit details
    Browse the repository at this point in the history