FISCO-BCOS / FISCO-BCOS/java-sdk
fisco-bcos-java-sdk:v2.8.0无法连接到链节点
- Dominant language
- Java
- Stars
- 58
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
如下代码:
`BcosSDK sdk = BcosSDK.build(path);`
版本 2.7.2成功
版本2.8.0 失败,如下错误:
`Exception in thread "main" java.lang.UnsatisfiedLinkError: com.webank.wedpr.crypto.NativeInterface.secp256k1GenKeyPair()Lcom/webank/wedpr/crypto/CryptoResult;
at com.webank.wedpr.crypto.NativeInterface.secp256k1GenKeyPair(Native Method)
at org.fisco.bcos.sdk.crypto.keypair.ECDSAKeyPair.generateKeyPair(ECDSAKeyPair.java:66)
at org.fisco.bcos.sdk.crypto.keypair.ECDSAKeyPair.(ECDSAKeyPair.java:31)
at org.fisco.bcos.sdk.crypto.CryptoSuite.initCryptoSuite(CryptoSuite.java:112)
at org.fisco.bcos.sdk.crypto.CryptoSuite.(CryptoSuite.java:100)
at org.fisco.bcos.sdk.amop.AmopImp.(AmopImp.java:55)
at org.fisco.bcos.sdk.amop.Amop.build(Amop.java:40)
at org.fisco.bcos.sdk.BcosSDK.(BcosSDK.java:100)
at org.fisco.bcos.sdk.BcosSDK.build(BcosSDK.java:59)
at com.jackniu.fisco.BcosSDKTest.main(BcosSDKTest.java:20)
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure from BcosSDKTest.main at BcosSDK.build(path), then trace the stack through BcosSDK, CryptoSuite, ECDSAKeyPair.java:66, and NativeInterface.secp256k1GenKeyPair. Compare the 2.7.2 and 2.8.0 native crypto dependencies or loading behavior. Done means version 2.8.0 initializes without UnsatisfiedLinkError and can connect to the chain node.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- blockchain
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100