Open pipepi opened 3 years ago
F3 address does not support the use of blake2b algorithm library, you need to use the bls algorithm library
F3 address does not support the use of blake2b algorithm library, you need to use the bls algorithm library
大佬,知道Java如何生成f3地址么。
@790228724
F3地址不支持使用blake2b算法库,需要使用bls算法库
How do I sign if I transfer from f1 to f3 address?
Is there any relevant demo or information?
Is there any relevant demo or information?
有没有相关的demo或者资料?
------------------ 原始邮件 ------------------ 发件人: "@@.>; 发送时间: 2022年1月11日(星期二) 晚上6:16 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [juzi-code/FilecoinJ] 转账支持BLS Public Key Address (f3开头的地址) (#9)
@790228724
F3地址不支持使用blake2b算法库,需要使用bls算法库
How do I sign if I transfer from f1 to f3 address?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you were mentioned.Message ID: @.***>
@790228724
F3地址不支持使用blake2b算法库,需要使用bls算法库
How do I sign if I transfer from f1 to f3 address?
这个我知道呀
那大佬,你知道如何使用Java 进行bls 的签名么?谢谢!
------------------ 原始邮件 ------------------ 发件人: "juzi-code/FilecoinJ" @.>; 发送时间: 2022年1月11日(星期二) 晚上6:16 @.>; @.**@.>; 主题: Re: [juzi-code/FilecoinJ] 转账支持BLS Public Key Address (f3开头的地址) (#9)
@790228724
F3地址不支持使用blake2b算法库,需要使用bls算法库
How do I sign if I transfer from f1 to f3 address?
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
那个大佬,你知道如何使用Java进行bls的签名么?谢谢! … ------------------ 原始邮件 ------------------ 发件人: "juzi-code/FilecoinJ" @.>; 发送时间: 2022年1月11日(星期二) 晚上6:16 @.>; @.**@.>; 主题: Re: [juzi-code/FilecoinJ] 转账支持BLS Public Key Address (f3开头的地址) (#9) @790228724 F3地址不支持使用blake2b算法库,需要使用bls算法库 How do I sign if I transfer from f1 to f3 address? — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
It seems that Java cannot implement the BLS algorithm. Do you know how to sign and send the transaction from F1 to F3 address, and can you provide relevant demos or materials? thank you!
可以,把邮箱发给我吧,
------------------ 原始邮件 ------------------ 发件人: "juzi-code/FilecoinJ" @.>; 发送时间: 2022年1月12日(星期三) 下午4:54 @.>; @.**@.>; 主题: Re: [juzi-code/FilecoinJ] 转账支持BLS Public Key Address (f3开头的地址) (#9)
It seems that Java cannot implement the BLS algorithm. Do you know how to sign and send the transaction from F1 to F3 address, and can you provide relevant demos or materials? thank you!
— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
可以,把邮箱发给我吧, … ------------------ 原始邮件 ------------------ 发件人: "juzi-code/FilecoinJ" @.>; 发送时间: 2022年1月12日(星期三) 下午4:54 @.>; @.**@.>; 主题: Re: [juzi-code/FilecoinJ] 转账支持BLS Public Key Address (f3开头的地址) (#9) It seems that Java cannot implement the BLS algorithm. Do you know how to sign and send the transaction from F1 to F3 address, and can you provide relevant demos or materials? thank you! — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>
GMAIL EMAIL : ganhua.office@gmail.com,Thank you, you are a good man!
我修改后,转账失败。不知道什么地方错了。用的是ganache-filecoin 做开发用的api服务。
import cn.hutool.core.codec.Base32; import cn.hutool.core.util.StrUtil; import com.filecoinj.exception.AddressException; import com.filecoinj.model.Address;
public class AddressUtil { /**
secp256k1地址字节长度 */ private final static int addressLength_1 = 21; // private final static int addressLength_1 = 21; private final static int addressLength_3 = 43;
public static Address initAddress(String addressStr) throws AddressException { if (StrUtil.isBlank(addressStr)){ throw new NullPointerException("addressStr 参数不能为空"); } //去掉拼接的前两位 String substring = addressStr.substring(2); //获取type String typeStr = addressStr.substring(1, 2); //获取网络类型 String network = addressStr.substring(0,1); int type = Integer.parseInt(typeStr); if (type != 1 && type !=2 && type != 3){ throw new AddressException("错误的地址类型"); }
} }