类的使用
network.nerve.core.crypto.ECKey
-
使用ECKey的程序包 程序包 说明 network.nerve.base.signture network.nerve.core.crypto network.nerve.kit.model network.nerve.kit.util -
-
network.nerve.base.signture中ECKey的使用
参数类型为ECKey的network.nerve.base.signture中的方法 修饰符和类型 方法 说明 static P2PHKSignatureSignatureUtil. createSignatureByEckey(NulsHash hash, ECKey ecKey)static P2PHKSignatureSignatureUtil. createSignatureByEckey(Transaction tx, ECKey ecKey)生成交易的签名传统static NulsSignDataSignatureUtil. signDigest(byte[] digest, ECKey ecKey)生成交易签名类型变量类型为ECKey的network.nerve.base.signture中的方法参数 修饰符和类型 方法 说明 static voidSignatureUtil. createOrAddTransactionSignture(Transaction tx, List<ECKey> signEckeys)签名或者追加签名static List<P2PHKSignature>SignatureUtil. createSignaturesByEckey(NulsHash hash, List<ECKey> eckeys)static List<P2PHKSignature>SignatureUtil. createSignaturesByEckey(Transaction tx, List<ECKey> eckeys)生成交易多个传统签名(多地址转账可能会用到)static voidSignatureUtil. createTransactionSignture(Transaction tx, List<ECKey> signEckeys)生成交易TransactionSignture -
network.nerve.core.crypto中ECKey的使用
类型参数类型为ECKey的network.nerve.core.crypto中的字段 修饰符和类型 字段 说明 static Comparator<ECKey>ECKey. AGE_COMPARATORSorts oldest keys first, newest last.static Comparator<ECKey>ECKey. PUBKEY_COMPARATORCompares pub key bytes usingUnsignedBytes.lexicographicalComparator()返回ECKey的network.nerve.core.crypto中的方法 修饰符和类型 方法 说明 static ECKeyECKey. fromASN1(byte[] asn1privkey)Construct an ECKey from an ASN.1 encoded private key.static ECKeyECKey. fromEncrypted(EncryptedData encryptedPrivateKey, byte[] pubKey)根据EncryptedData和公钥生成ECKeystatic ECKeyECKey. fromPrivate(byte[] privKeyBytes)Creates an ECKey given the private key only.static ECKeyECKey. fromPrivate(BigInteger privKey)Creates an ECKey given the private key only.static ECKeyECKey. fromPrivateAndPrecalculatedPublic(byte[] priv, byte[] pub)Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the generator point by the private key.static ECKeyECKey. fromPrivateAndPrecalculatedPublic(BigInteger priv, org.bouncycastle.math.ec.ECPoint pub)Creates an ECKey that simply trusts the caller to ensure that point is really the result of multiplying the generator point by the private key.static ECKeyECKey. fromPublicOnly(byte[] pub)Creates an ECKey that cannot be used for signing, only verifying signatures, from the given encoded point.static ECKeyECKey. fromPublicOnly(org.bouncycastle.math.ec.ECPoint pub)Creates an ECKey that cannot be used for signing, only verifying signatures, from the given point.static ECKeyECKey. recoverFromSignature(int recId, ECKey.ECDSASignature sig, Sha256Hash message, boolean compressed)Given the components of a signature and a selector value, recover and return the public key that generated the signature according to the algorithm in SEC1v2 section 4.1.6. -
network.nerve.kit.model中ECKey的使用
返回ECKey的network.nerve.kit.model中的方法 修饰符和类型 方法 说明 ECKeyAccount. getEcKey()ECKeyAccount. getEcKey(String password)根据密码获取ECKeyECKeyAccount. getEcKey1(String password)参数类型为ECKey的network.nerve.kit.model中的方法 修饰符和类型 方法 说明 voidAccount. setEcKey(ECKey ecKey) -
network.nerve.kit.util中ECKey的使用
参数类型为ECKey的network.nerve.kit.util中的方法 修饰符和类型 方法 说明 static AddressAccountTool. newAddress(int chainId, ECKey key)
-