类的使用
network.nerve.core.crypto.ECKey.ECDSASignature
-
使用ECKey.ECDSASignature的程序包 程序包 说明 network.nerve.core.crypto -
-
network.nerve.core.crypto中ECKey.ECDSASignature的使用
返回ECKey.ECDSASignature的network.nerve.core.crypto中的方法 修饰符和类型 方法 说明 static ECKey.ECDSASignatureECKey.ECDSASignature. decodeFromDER(byte[] bytes)ECKey.ECDSASignatureECKey.ECDSASignature. toCanonicalised()Will automatically adjust the S component to be less than or equal to half the curve order, if necessary.参数类型为ECKey.ECDSASignature的network.nerve.core.crypto中的方法 修饰符和类型 方法 说明 byteECKey. findRecoveryId(Sha256Hash hash, ECKey.ECDSASignature sig)Returns the recovery ID, a byte with value between 0 and 3, inclusive, that specifies which of 4 possible curve points was used to sign a message.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.static booleanECKey. verify(byte[] data, ECKey.ECDSASignature signature, byte[] pub)Verifies the given ECDSA signature against the message bytes using the public key bytes.booleanECKey. verify(Sha256Hash sigHash, ECKey.ECDSASignature signature)Verifies the given R/S pair (signature) against a hash using the public key.voidECKey. verifyOrThrow(Sha256Hash sigHash, ECKey.ECDSASignature signature)Verifies the given R/S pair (signature) against a hash using the public key, and throws an exception if the signature doesn't match
-