Uses of Interface
org.bitcoinj.secp.SecpResult
Packages that use SecpResult
Package
Description
API definition package for the
org.bitcoinj.secp module and JAR.-
Uses of SecpResult in org.bitcoinj.secp
Classes in org.bitcoinj.secp that implement SecpResultModifier and TypeClassDescriptionstatic final classAn error result, with aninterror code inSecpResult.Err.code().static final classA successful result containing a value of type<T>inSecpResult.Ok.result().Methods in org.bitcoinj.secp that return SecpResultModifier and TypeMethodDescriptionstatic <T> SecpResult<T> Create a result from an error code and a supplier function.Secp256k1.ecdh(SecpPubKey pubKey, SecpPrivKey privKey) ECDH key agreementSecp256k1.ecdsaSign(byte[] msg_hash_data, SecpPrivKey privKey) Sign a message hash using the ECDSA algorithmSecp256k1.ecdsaSignatureParseCompact(byte[] serialized_signature) Parse a Bitcoin compact signature.Secp256k1.ecdsaSignLowR(byte[] messageHashData, SecpPrivKey privKey) Sign a message hash using the ECDSA algorithm and Low-R signature gridingSecp256k1.ecdsaVerify(EcdsaSignature sig, byte[] msg_hash_data, SecpPubKey pubKey) Verify an ECDSA signature.Secp256k1.ecPubKeyParse(byte[] inputData) Parse a byte array as a public keystatic <T> SecpResult<T> SecpResult.err(int error_code) Static constructor forSecpResult.Errstatic <T> SecpResult<T> SecpResult.ok(T result) Static constructor forSecpResult.Okstatic SecpResult<SecpXOnlyPubKey> SecpXOnlyPubKey.parse(byte[] serialized) Deprecated, for removal: This API element is subject to removal in a future version.default SecpResult<Boolean> Secp256k1.schnorrSigVerify(SchnorrSignature signature, byte[] msg_hash, SecpPubKey pubKey) Verify a Schnorr signature.Secp256k1.schnorrSigVerify(SchnorrSignature signature, byte[] msg_hash, SecpXOnlyPubKey pubKey) Verify a Schnorr signature.Secp256k1.xOnlyPubKeyParse(byte[] inputData) Parse a byte array as an x-only public key -
Uses of SecpResult in org.bitcoinj.secp.ffm
Methods in org.bitcoinj.secp.ffm that return SecpResultModifier and TypeMethodDescriptionSecp256k1Foreign.ecdh(SecpPubKey pubKey, SecpPrivKey privKey) Secp256k1Foreign.ecdsaSign(byte[] msg_hash_data, SecpPrivKey privKey) Secp256k1Foreign.ecdsaSignatureParseCompact(byte[] serialized_signature) Secp256k1Foreign.ecdsaSignLowR(byte[] msg_hash_data, SecpPrivKey privKey) ECDSA signing with Low-R grinding.Secp256k1Foreign.ecdsaVerify(EcdsaSignature sig, byte[] msg_hash_data, SecpPubKey pubKey) Secp256k1Foreign.ecPubKeyParse(byte[] inputData) Secp256k1Foreign.schnorrSigVerify(SchnorrSignature signature, byte[] msg_hash, SecpXOnlyPubKey pubKey) Secp256k1Foreign.xOnlyPubKeyParse(byte[] inputData)
Secp256k1.xOnlyPubKeyParse(byte[])instead