FISCO校验公私钥地址合法性
公钥
1 | if (!req.getPublicKey().matches("^[0-9a-fA-F]{130}$")) { |
私钥
1 | if (!req.getPrivateKey().matches("^[0-9a-fA-F]{64}$") || "fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141".compareTo(req.getPrivateKey()) < 0) { |
地址
1 | if (!req.getAddress().matches("^[0-9a-fA-F]{42}$")) { |