类 AccountTool
- java.lang.Object
-
- network.nerve.kit.util.AccountTool
-
public class AccountTool extends Object
-
-
字段概要
字段 修饰符和类型 字段 说明 static intCREATE_MAX_SIZEstatic intCREATE_MULTI_SIGACCOUNT_MIN_SIZE
-
构造器概要
构造器 构造器 说明 AccountTool()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static AccountcreateAccount(int chainId)static AccountcreateAccount(int chainId, String prikey)static AccountcreateAccount(int chainId, String prikey, String prefix)static AccountcreateAccount1(int chainId)static AccountcreateAccount1(int chainId, String prikey)static AccountcreateAccount1(int chainId, String prikey, String prefix)static AddresscreateContractAddress(int chainId)创建智能合约地址 Create smart contract addressstatic MultiSigAccountcreateMultiSigAccount(int chainId, List<String> pubKeys, int minSigns)static byte[]createMultiSigAccountOriginBytes(int chainId, int n, List<String> pubKeys)static BigIntegergenPrivKey(byte[] encryptedPriKey, byte[] pw)Generate the corresponding account management private key or transaction private key according to the seed private key and passwordstatic StringgetPrefix(String address)static AddressnewAddress(int chainId, byte[] publicKey)static AddressnewAddress(int chainId, String prikey)static AddressnewAddress(int chainId, ECKey key)
-
-
-
方法详细资料
-
newAddress
public static Address newAddress(int chainId, byte[] publicKey)
-
createAccount
public static Account createAccount(int chainId, String prikey, String prefix) throws NulsException
- 抛出:
NulsException
-
createAccount1
public static Account createAccount1(int chainId, String prikey, String prefix) throws NulsException
- 抛出:
NulsException
-
createAccount
public static Account createAccount(int chainId, String prikey) throws NulsException
- 抛出:
NulsException
-
createAccount1
public static Account createAccount1(int chainId, String prikey) throws NulsException
- 抛出:
NulsException
-
createAccount
public static Account createAccount(int chainId) throws NulsException
- 抛出:
NulsException
-
createAccount1
public static Account createAccount1(int chainId) throws NulsException
- 抛出:
NulsException
-
createContractAddress
public static Address createContractAddress(int chainId)
创建智能合约地址 Create smart contract address- 参数:
chainId-- 返回:
-
genPrivKey
public static BigInteger genPrivKey(byte[] encryptedPriKey, byte[] pw)
Generate the corresponding account management private key or transaction private key according to the seed private key and password
-
createMultiSigAccountOriginBytes
public static byte[] createMultiSigAccountOriginBytes(int chainId, int n, List<String> pubKeys) throws NulsException- 抛出:
NulsException
-
createMultiSigAccount
public static MultiSigAccount createMultiSigAccount(int chainId, List<String> pubKeys, int minSigns) throws NulsException
- 抛出:
NulsException
-
-