Closed airvin closed 4 years ago
@airvin Is it possible to use an older version of web3j that depends on BC 1.62?
Alternatively, how about writing two separate modules, one based on Fabric-SDK-Java and another based on web3j (I imagine this is for the bulletin board?) and have them communicate through HTTP?
Both good suggestions, thanks! I'll look into them
I ended up writing them as two separate modules and it fixes the issue. They now run as independent processes, which is probably a better way to do things anyway.
When both the Fabric java SDK and web3j core are listed as dependencies, the Fabric client throws an exception when trying to enroll a user:
It seems Fabric uses an old version of the Bouncy Castle security provider (bcprov-jdk15on v1.62), and web3j uses the latest version (1.65). Apparently it is not possible to upgrade Fabric to anything beyond v1.62. See this Jira issue for more details.
This stackoverflow question describes why these providers are incompatible.