Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
B
- BOUNCY_CASTLE - Enum constant in enum class org.bitcoinj.secp.Secp256k1.ProviderId
-
Bouncy Castle library
- ByteArray - Interface in org.bitcoinj.secp.internal
-
An effectively-immutable sequence of bytes.
- bytes() - Method in interface org.bitcoinj.secp.EcdhSharedSecret
-
Get the 32-byte hash as a
byte[] - bytes() - Method in interface org.bitcoinj.secp.internal.ByteArray
-
Get the bytes as an array
- bytes() - Method in class org.bitcoinj.secp.internal.EcdhSharedSecretImpl
- bytes() - Method in class org.bitcoinj.secp.internal.SchnorrSignatureImpl
- bytes() - Method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- bytes() - Method in interface org.bitcoinj.secp.SchnorrSignature
-
Serialize to 64-byte raw format in a
byte[]. - ByteUtils - Class in org.bitcoinj.secp.internal
- ByteUtils() - Constructor for class org.bitcoinj.secp.internal.ByteUtils
C
- checked(int, Supplier) - Static method in interface org.bitcoinj.secp.SecpResult
-
Create a result from an error code and a supplier function.
- checkInRange(byte[]) - Static method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
-
Throw
IllegalArgumentExceptionif the byte array is not the length. - checkInRange(BigInteger) - Static method in interface org.bitcoinj.secp.internal.UInt256
-
Throw
IllegalArgumentExceptionif an integer is not in the inclusive rangeUInt256.MIN_VALUEtoUInt256.MAX_VALUE. - checkInRange(BigInteger) - Static method in interface org.bitcoinj.secp.SecpFieldElement
-
Throw
IllegalArgumentExceptionif an integer is not in the inclusive range0toP - 1, wherePis the prime of the SECP256K1 prime finite field. - checkInRange(BigInteger) - Static method in interface org.bitcoinj.secp.SecpScalar
-
Throw
IllegalArgumentExceptionif an integer is not in the inclusive range1toN - 1, whereNis the order of the SECG P256K1 generator point. - close() - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- close() - Method in interface org.bitcoinj.secp.Secp256k1
-
Override close and declare that no checked exceptions are thrown
- code() - Method in class org.bitcoinj.secp.SecpResult.Err
-
Get the error code
- compareTo(ByteArray) - Method in interface org.bitcoinj.secp.internal.ByteArray
- compareUnsigned(byte[], byte[]) - Static method in class org.bitcoinj.secp.internal.ByteUtils
-
Compare byte arrays treating each byte as unsigned.
- compress() - Method in class org.bitcoinj.secp.internal.SecpECPoint
- compress() - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- compress() - Method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
- compress() - Method in interface org.bitcoinj.secp.SecpPoint.Uncompressed
-
Convert to a compressed point.
- CURVE - Static variable in interface org.bitcoinj.secp.Secp256k1
-
The curve definition for secp256k1 using the standard Java type
EllipticCurve.
D
- destroy() - Method in class org.bitcoinj.secp.internal.SecpKeyPairImpl
- destroy() - Method in class org.bitcoinj.secp.internal.SecpPrivKeyImpl
- destroy() - Method in interface org.bitcoinj.secp.SecpPrivKey
-
Destroy must be implemented and must not throw (checked) exceptions
E
- EC_PARAMS - Static variable in interface org.bitcoinj.secp.Secp256k1
-
The secp256k1 domain parameters definition using the standard Java type
- ecdh(SecpPubKey, SecpPrivKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecdh(SecpPubKey, SecpPrivKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
ECDH key agreement
- EcdhSharedSecret - Interface in org.bitcoinj.secp
-
An secp256k1 ECDH shared secret (a 32-byte hash.)
- EcdhSharedSecretImpl - Class in org.bitcoinj.secp.internal
-
A secp256k1 ECDH shared secret, stored as a
ByteArray. - EcdhSharedSecretImpl(byte[]) - Constructor for class org.bitcoinj.secp.internal.EcdhSharedSecretImpl
- ecdsaSign(byte[], SecpPrivKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecdsaSign(byte[], SecpPrivKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Sign a message hash using the ECDSA algorithm
- EcdsaSignature - Interface in org.bitcoinj.secp
-
An secp256k1 ECDSA signature.
- EcdsaSignatureImpl - Class in org.bitcoinj.secp.internal
-
Default/Internal implementation of
EcdsaSignature - EcdsaSignatureImpl(byte[]) - Constructor for class org.bitcoinj.secp.internal.EcdsaSignatureImpl
-
Construct from a 64-byte, big-endian compact serialized signature
- EcdsaSignatureImpl(SecpScalarImpl, SecpScalarImpl) - Constructor for class org.bitcoinj.secp.internal.EcdsaSignatureImpl
- EcdsaSignatureImpl(SecpScalar, SecpScalar) - Constructor for class org.bitcoinj.secp.internal.EcdsaSignatureImpl
- ecdsaSignatureParseCompact(byte[]) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecdsaSignatureParseCompact(byte[]) - Method in interface org.bitcoinj.secp.Secp256k1
-
Parse a Bitcoin compact signature.
- ecdsaSignatureSerializeCompact(EcdsaSignature) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecdsaSignatureSerializeCompact(EcdsaSignature) - Method in interface org.bitcoinj.secp.Secp256k1
-
Serialize a
EcdsaSignatureas a Bitcoin compact signature. - ecdsaSignLowR(byte[], SecpPrivKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
-
ECDSA signing with Low-R grinding.
- ecdsaSignLowR(byte[], SecpPrivKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Sign a message hash using the ECDSA algorithm and Low-R signature griding
- ecdsaVerify(MemorySegment, MemorySegment, MemorySegment) - Static method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
-
TBD: Static verify method that doesn't require a class instance.
- ecdsaVerify(EcdsaSignature, byte[], SecpPubKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecdsaVerify(EcdsaSignature, byte[], SecpPubKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Verify an ECDSA signature.
- ecKeyPairCreate() - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecKeyPairCreate() - Method in interface org.bitcoinj.secp.Secp256k1
-
Create a new, randomly-generated private key and return it with its matching public key
- ecKeyPairCreate(SecpPrivKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecKeyPairCreate(SecpPrivKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Create a key pair structure from a known private key
- ecPointUncompress(SecpPoint.Compressed) - Method in interface org.bitcoinj.secp.Secp256k1
-
Calculate an uncompressed point from a compressed point.
- ecPrivKeyCreate() - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecPrivKeyCreate() - Method in interface org.bitcoinj.secp.Secp256k1
-
Create a new, randomly-generated private key.
- ecPubKeyCombine(SecpPoint.Uncompressed, SecpPoint.Uncompressed) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecPubKeyCombine(SecpPoint.Uncompressed, SecpPoint.Uncompressed) - Method in interface org.bitcoinj.secp.Secp256k1
-
Combine two public keys by adding them.
- ecPubKeyCombine(SecpPubKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecPubKeyCreate(SecpPrivKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecPubKeyCreate(SecpPrivKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Create a public key from the given private key.
- ecPubKeyFromXOnly(SecpXOnlyPubKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Convert an x-only public key to a (uncompressed point) public key
- ecPubKeyParse(byte[]) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecPubKeyParse(byte[]) - Method in interface org.bitcoinj.secp.Secp256k1
-
Parse a byte array as a public key
- ecPubKeySerialize(SecpPubKey, int) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
-
Since
PubKeyDatais serializable without using the native lib, this method serialized without a native call. - ecPubKeySerialize(SecpPubKey, int) - Method in interface org.bitcoinj.secp.Secp256k1
-
Serialize a public key
- ecPubKeyTweakMul(SecpPoint.Uncompressed, BigInteger) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- ecPubKeyTweakMul(SecpPoint.Uncompressed, BigInteger) - Method in interface org.bitcoinj.secp.Secp256k1
-
Multiply a public key by a scalar, this is known as key "tweaking"
- equals(Object) - Method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
- equals(Object) - Method in class org.bitcoinj.secp.internal.EcdhSharedSecretImpl
- equals(Object) - Method in class org.bitcoinj.secp.internal.SecpPointCompressed
- equals(Object) - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- equals(Object) - Method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- equals(SecpPoint) - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- err(int) - Static method in interface org.bitcoinj.secp.SecpResult
-
Static constructor for
SecpResult.Err - Err(int) - Constructor for class org.bitcoinj.secp.SecpResult.Err
-
Construct an error result from an error code
- errorCode() - Method in interface org.bitcoinj.secp.SecpResult
-
Return the error code
F
- FIELD - Static variable in interface org.bitcoinj.secp.Secp256k1
-
The secp256k1 field definition
pusing the standard Java type - findAll(Predicate) - Static method in interface org.bitcoinj.secp.Secp256k1
-
Get a stream of all providers that match a filter
- ForeignProvider - Class in org.bitcoinj.secp.ffm
- ForeignProvider() - Constructor for class org.bitcoinj.secp.ffm.ForeignProvider
- formatHex() - Method in interface org.bitcoinj.secp.internal.ByteArray
-
Format the bytes as a hex string
- formatHex(byte[]) - Method in class org.bitcoinj.secp.internal.HexFormat
G
- G - Static variable in interface org.bitcoinj.secp.Secp256k1
-
The generator point
G(also known as base point) for secp256k1. - get() - Method in class org.bitcoinj.secp.ffm.ForeignProvider
- get() - Static method in interface org.bitcoinj.secp.Secp256k1
-
Get the default implementation
- get() - Method in interface org.bitcoinj.secp.Secp256k1.Provider
-
Get the instance this provider object describes
- get() - Method in interface org.bitcoinj.secp.SecpResult
-
Get the result value or throw a
RuntimeException - get(String) - Method in interface org.bitcoinj.secp.SecpResult
-
Get the result value or throw a
RuntimeException - getAlgorithm() - Method in interface org.bitcoinj.secp.SecpPrivKey
- getAlgorithm() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Return associated cryptographic algorithm.
- getById(String) - Static method in interface org.bitcoinj.secp.Secp256k1
-
Get implementation by ID
- getById(Secp256k1.ProviderId) - Static method in interface org.bitcoinj.secp.Secp256k1
-
Get implementation by ID enum
- getCompressed() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Return as a compressed point
- getEncoded() - Method in class org.bitcoinj.secp.internal.SecpKeyPairImpl
- getEncoded() - Method in class org.bitcoinj.secp.internal.SecpPrivKeyImpl
- getEncoded() - Method in interface org.bitcoinj.secp.SecpPrivKey
- getEncoded() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Return serialized key.
- getFormat() - Method in interface org.bitcoinj.secp.SecpPrivKey
- getFormat() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Return default encoding (serialization) format.
- getParams() - Method in interface org.bitcoinj.secp.SecpPrivKey
- getParams() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Get the Elliptic Curve parameters
- getS() - Method in class org.bitcoinj.secp.internal.SecpPrivKeyImpl
- getS() - Method in interface org.bitcoinj.secp.SecpPrivKey
- getUncompressed() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Return as an uncompressed point
- getW() - Method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
- getW() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Returns this key as a
SecpECPointor, if it is the "point at infinity" it returnsECPoint.POINT_INFINITY - getX() - Method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- getX() - Method in interface org.bitcoinj.secp.SecpXOnlyPubKey
-
Get X as a
BigInteger
H
- HALF_CURVE_ORDER - Static variable in interface org.bitcoinj.secp.Secp256k1
-
Equal to
EC_PARAMS.getOrder().shiftRight(1), used for canonicalizing the S value of a signature. - hashCode() - Method in class org.bitcoinj.secp.internal.EcdhSharedSecretImpl
- hashCode() - Method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
- hashCode() - Method in class org.bitcoinj.secp.internal.SecpPointCompressed
- hashCode() - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- hashCode() - Method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- hasLowR() - Method in interface org.bitcoinj.secp.EcdsaSignature
-
Is this signature a "low R" signature.
- hasLowR() - Method in class org.bitcoinj.secp.internal.EcdsaSignatureImpl
- HexFormat - Class in org.bitcoinj.secp.internal
-
Utility to parse hex strings and convert to
byte[]and to formatbyte[]as UPPERCASE. - HexFormat() - Constructor for class org.bitcoinj.secp.internal.HexFormat
I
- id() - Method in class org.bitcoinj.secp.ffm.ForeignProvider
- id() - Method in interface org.bitcoinj.secp.Secp256k1.Provider
-
Implementations must implement this method to return a unique ID
- id() - Method in enum class org.bitcoinj.secp.Secp256k1.ProviderId
-
Get the provider ID as a string
- INSTANCE - Enum constant in enum class org.bitcoinj.secp.SecpPoint.Infinity
-
Singleton instance
- integerTo32Bytes(BigInteger) - Static method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
-
Convert a BigInteger to a fixed-length byte array verifying it's a valid P256k1 field element.
- integerTo32Bytes(BigInteger) - Static method in class org.bitcoinj.secp.internal.SecpScalarImpl
-
Convert a BigInteger to a fixed-length byte array verifying it's a valid P256k1 scalar.
- integerTo32Bytes(BigInteger) - Static method in interface org.bitcoinj.secp.internal.UInt256
-
Convert a BigInteger to a 32-byte fixed-length byte array (UInt256).
- isDestroyed() - Method in class org.bitcoinj.secp.internal.SecpKeyPairImpl
- isDestroyed() - Method in class org.bitcoinj.secp.internal.SecpPrivKeyImpl
- isInRange(byte[]) - Static method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
- isInRange(BigInteger) - Static method in interface org.bitcoinj.secp.internal.UInt256
-
Check if an integer is in the inclusive range
UInt256.MIN_VALUEtoUInt256.MAX_VALUE - isInRange(BigInteger) - Static method in interface org.bitcoinj.secp.SecpFieldElement
-
Check if an integer is in the inclusive range
0toP - 1, wherePis the prime of the SECG P256K1 prime finite field. - isInRange(BigInteger) - Static method in interface org.bitcoinj.secp.SecpScalar
-
Check if an integer is in the inclusive range
1toN - 1, whereNis the order of the SECG P256K1 generator point. - isOdd() - Method in class org.bitcoinj.secp.internal.SecpECPoint
- isOdd() - Method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
- isOdd() - Method in class org.bitcoinj.secp.internal.SecpPointCompressed
- isOdd() - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- isOdd() - Method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
- isOdd() - Method in interface org.bitcoinj.secp.SecpFieldElement
-
Get the parity of the field value
- isOdd() - Method in interface org.bitcoinj.secp.SecpPoint.Point
-
Get the parity of the y-coordinate field value
- isOk() - Method in interface org.bitcoinj.secp.SecpResult
-
Is the result successful (
SecpResult.Ok)?
L
- LIBSECP256K1_FFM - Enum constant in enum class org.bitcoinj.secp.Secp256k1.ProviderId
-
libsecp256k1 'C" library accessed through Java FFM
M
- MAX_VALUE - Static variable in interface org.bitcoinj.secp.internal.UInt256
-
The maximum unsigned 32-byte / 256-bit value
- MAX_VALUE - Static variable in interface org.bitcoinj.secp.SecpScalar
- MIN_VALUE - Static variable in interface org.bitcoinj.secp.internal.UInt256
- MIN_VALUE - Static variable in interface org.bitcoinj.secp.SecpScalar
N
- N - Static variable in interface org.bitcoinj.secp.Secp256k1
-
The prime
N, that represents the order of the generator point, i.e. the number of points on the curve.
O
- of(byte[]) - Static method in interface org.bitcoinj.secp.EcdsaSignature
-
Deprecated, for removal: This API element is subject to removal in a future version.
- of(byte[]) - Static method in class org.bitcoinj.secp.internal.SchnorrSignatureImpl
-
Create an ECDSA signature from serialized bytes
- of(byte[]) - Static method in interface org.bitcoinj.secp.SchnorrSignature
-
Deprecated, for removal: This API element is subject to removal in a future version.
- of(byte[]) - Static method in interface org.bitcoinj.secp.SecpFieldElement
-
Construct a field element from a big-endian byte-array of 32 bytes
- of(byte[]) - Static method in interface org.bitcoinj.secp.SecpPrivKey
-
Construct a private key from bytes
- of(BigInteger) - Static method in interface org.bitcoinj.secp.SecpFieldElement
-
Construct a
SecpFieldElementfrom a BigInteger - of(BigInteger) - Static method in interface org.bitcoinj.secp.SecpPrivKey
-
Construct a private key from an integer
- of(BigInteger, BigInteger) - Static method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- of(ECPoint) - Static method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- of(ECPoint) - Static method in interface org.bitcoinj.secp.SecpPoint
-
Deprecated, for removal: This API element is subject to removal in a future version.
- of(SecpFieldElement, SecpFieldElement) - Static method in class org.bitcoinj.secp.internal.SecpPointImpl
- of(SecpFieldElement, SecpFieldElement) - Static method in interface org.bitcoinj.secp.SecpPoint
-
Deprecated, for removal: This API element is subject to removal in a future version.
- of(SecpPrivKey, SecpPubKey) - Static method in interface org.bitcoinj.secp.SecpKeyPair
-
Deprecated, for removal: This API element is subject to removal in a future version.
- of(SecpScalar, SecpScalar) - Static method in interface org.bitcoinj.secp.EcdsaSignature
-
Deprecated, for removal: This API element is subject to removal in a future version.
- ofPoint(ECPoint) - Static method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
-
Construct a public key from an
ECPoint - ofVerifiedBytes(byte[]) - Static method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- ok(T) - Static method in interface org.bitcoinj.secp.SecpResult
-
Static constructor for
SecpResult.Ok - Ok(T) - Constructor for class org.bitcoinj.secp.SecpResult.Ok
-
Construct a successful result from a result value
- OK - Static variable in interface org.bitcoinj.secp.SecpResult
-
Error return integer value for success
- org.bitcoinj.secp - module org.bitcoinj.secp
-
API definition module for secp256k1-jdk, a Java library providing Elliptic Curve Cryptography functions using the SECG curve secp256k1.
- org.bitcoinj.secp - package org.bitcoinj.secp
-
API definition package for the
org.bitcoinj.secpmodule and JAR. - org.bitcoinj.secp.bouncy - module org.bitcoinj.secp.bouncy
-
Bouncy Castle implementation of
Secp256k1 - org.bitcoinj.secp.ffm - module org.bitcoinj.secp.ffm
-
Implementation of
Secp256k1using secp256k1 via Java FFM. - org.bitcoinj.secp.ffm - package org.bitcoinj.secp.ffm
- org.bitcoinj.secp.graalvm - module org.bitcoinj.secp.graalvm
-
Module to assist GraalVM with native image generation.
- org.bitcoinj.secp.internal - package org.bitcoinj.secp.internal
-
Internal helper classes -- not for public use.
P
- P - Static variable in interface org.bitcoinj.secp.Secp256k1
-
The prime
P, that defines the secp256k1 field. - parse(byte[]) - Static method in interface org.bitcoinj.secp.SecpXOnlyPubKey
-
Deprecated, for removal: This API element is subject to removal in a future version.Use
Secp256k1.xOnlyPubKeyParse(byte[])instead - parseHex(String) - Method in class org.bitcoinj.secp.internal.HexFormat
- point() - Method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
- point() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Get the uncompressed
SecpPoint - POINT_INFINITY - Static variable in interface org.bitcoinj.secp.SecpPoint
-
The P256K1 infinity point
- privateKey() - Method in class org.bitcoinj.secp.internal.SecpKeyPairImpl
- privateKey() - Method in interface org.bitcoinj.secp.SecpKeyPair
-
Get the private key
- publicKey() - Method in class org.bitcoinj.secp.internal.SecpKeyPairImpl
- publicKey() - Method in interface org.bitcoinj.secp.SecpKeyPair
-
Get the public key
R
- r() - Method in interface org.bitcoinj.secp.EcdsaSignature
-
Get scalar R
- r() - Method in class org.bitcoinj.secp.internal.EcdsaSignatureImpl
- r() - Method in class org.bitcoinj.secp.internal.SchnorrSignatureImpl
- r() - Method in interface org.bitcoinj.secp.SchnorrSignature
-
Get scalar R
- result() - Method in class org.bitcoinj.secp.SecpResult.Ok
-
Get the result value
S
- s() - Method in interface org.bitcoinj.secp.EcdsaSignature
-
Get scalar S
- s() - Method in class org.bitcoinj.secp.internal.EcdsaSignatureImpl
- s() - Method in class org.bitcoinj.secp.internal.SchnorrSignatureImpl
- s() - Method in interface org.bitcoinj.secp.SchnorrSignature
-
Get scalar S
- SchnorrSignature - Interface in org.bitcoinj.secp
-
A secp256k1 Schnorr signature.
- SchnorrSignatureImpl - Class in org.bitcoinj.secp.internal
-
A secp256k1 Schnorr signature.
- SchnorrSignatureImpl(byte[]) - Constructor for class org.bitcoinj.secp.internal.SchnorrSignatureImpl
- schnorrSigSign32(byte[], SecpPrivKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- schnorrSigSign32(byte[], SecpPrivKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Create a Schnorr signature for a message.
- schnorrSigSign32(byte[], SecpPrivKey, byte[]) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
-
schnorrSigSign32 using provided randomness.
- schnorrSigSign32(byte[], SecpPrivKey, byte[]) - Method in interface org.bitcoinj.secp.Secp256k1
-
Create a Schnorr signature for a message.
- schnorrSigVerify(SchnorrSignature, byte[], SecpPubKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Verify a Schnorr signature.
- schnorrSigVerify(SchnorrSignature, byte[], SecpXOnlyPubKey) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- schnorrSigVerify(SchnorrSignature, byte[], SecpXOnlyPubKey) - Method in interface org.bitcoinj.secp.Secp256k1
-
Verify a Schnorr signature.
- Secp256k1 - Interface in org.bitcoinj.secp
-
Main interface providing Elliptic Curve Cryptography functions using the SECG curve.
- Secp256k1.Provider - Interface in org.bitcoinj.secp
-
Provider interface for implementations of
Secp256k1. - Secp256k1.ProviderId - Enum Class in org.bitcoinj.secp
-
Standard, well-known providers
- Secp256k1Foreign - Class in org.bitcoinj.secp.ffm
-
Implementation of
Secp256k1using thesecp256k1C-language library and the Java Foreign Function & Memory API. - Secp256k1Foreign() - Constructor for class org.bitcoinj.secp.ffm.Secp256k1Foreign
- Secp256k1Foreign(int, boolean) - Constructor for class org.bitcoinj.secp.ffm.Secp256k1Foreign
- SecpECPoint - Class in org.bitcoinj.secp.internal
-
An
ECPointthat has been validated to also be aSecpPoint. - SecpECPoint(BigInteger, BigInteger) - Constructor for class org.bitcoinj.secp.internal.SecpECPoint
-
Creates an ECPoint from the specified affine x-coordinate
xand affine y-coordinatey. - SecpECPoint(SecpFieldElement, SecpFieldElement) - Constructor for class org.bitcoinj.secp.internal.SecpECPoint
- SecpFieldElement - Interface in org.bitcoinj.secp
-
A number that is a valid element of the P256K1 field.
- SecpFieldElementImpl - Class in org.bitcoinj.secp.internal
-
Implementation of
SecpFieldElementas an array of bytes. - SecpFieldElementImpl(byte[]) - Constructor for class org.bitcoinj.secp.internal.SecpFieldElementImpl
-
Caller is responsible for defensively copying
byte[]. - SecpFieldElementImpl(BigInteger) - Constructor for class org.bitcoinj.secp.internal.SecpFieldElementImpl
- SecpKeyPair - Interface in org.bitcoinj.secp
-
A single object containing a private key and its derived public key.
- SecpKeyPairImpl - Class in org.bitcoinj.secp.internal
- SecpKeyPairImpl(SecpPrivKey, SecpPubKey) - Constructor for class org.bitcoinj.secp.internal.SecpKeyPairImpl
- SecpPoint - Interface in org.bitcoinj.secp
- SecpPoint.Compressed - Interface in org.bitcoinj.secp
-
A P256K1 point in compressed format.
- SecpPoint.Infinity - Enum Class in org.bitcoinj.secp
-
Singleton representing the point-at-infinity
- SecpPoint.Point - Interface in org.bitcoinj.secp
-
A non-infinity point, either
SecpPoint.CompressedorSecpPoint.Uncompressed. - SecpPoint.Uncompressed - Interface in org.bitcoinj.secp
-
A P256K1 point in uncompressed format.
- SecpPointCompressed - Class in org.bitcoinj.secp.internal
- SecpPointImpl - Class in org.bitcoinj.secp.internal
-
Default implementation of
SecpPoint - SecpPointImpl() - Constructor for class org.bitcoinj.secp.internal.SecpPointImpl
- SecpPointUncompressed - Class in org.bitcoinj.secp.internal
- SecpPointUncompressed(SecpFieldElement, SecpFieldElement) - Constructor for class org.bitcoinj.secp.internal.SecpPointUncompressed
- SecpPrivKey - Interface in org.bitcoinj.secp
-
A P256k1 private key.
- SecpPrivKeyImpl - Class in org.bitcoinj.secp.internal
-
Default/internal implementation of
SecpPrivKey - SecpPrivKeyImpl(byte[]) - Constructor for class org.bitcoinj.secp.internal.SecpPrivKeyImpl
-
Caller is responsible for defensively copying
byte[]. - SecpPrivKeyImpl(BigInteger) - Constructor for class org.bitcoinj.secp.internal.SecpPrivKeyImpl
- SecpPubKey - Interface in org.bitcoinj.secp
-
A valid secp256k1 Public Key that is a subclass of
ECPublicKey. - SecpPubKeyImpl - Class in org.bitcoinj.secp.internal
-
Default/Internal SecpPubKey implementation storing as
SecpPointUncompressed. - SecpPubKeyImpl(ECPoint) - Constructor for class org.bitcoinj.secp.internal.SecpPubKeyImpl
- SecpPubKeyImpl(SecpPointUncompressed) - Constructor for class org.bitcoinj.secp.internal.SecpPubKeyImpl
- SecpPubKeyImpl(SecpPoint.Uncompressed) - Constructor for class org.bitcoinj.secp.internal.SecpPubKeyImpl
- SecpResult<T> - Interface in org.bitcoinj.secp
-
Functional-style result for secp256k1 -- either
SecpResult.OkorSecpResult.Err. - SecpResult.Err<T> - Class in org.bitcoinj.secp
-
An error result, with an
interror code inSecpResult.Err.code(). - SecpResult.Ok<T> - Class in org.bitcoinj.secp
-
A successful result containing a value of type
<T>inSecpResult.Ok.result(). - SecpScalar - Interface in org.bitcoinj.secp
- SecpScalarImpl - Class in org.bitcoinj.secp.internal
- SecpScalarImpl(byte[]) - Constructor for class org.bitcoinj.secp.internal.SecpScalarImpl
- SecpScalarImpl(BigInteger) - Constructor for class org.bitcoinj.secp.internal.SecpScalarImpl
- SecpXOnlyPubKey - Interface in org.bitcoinj.secp
-
An x-only public key from a point on the secp256k1 curve
- SecpXOnlyPubKeyImpl - Class in org.bitcoinj.secp.internal
-
Simple implementation using {code @byte[]} as internal storage.
- SecpXOnlyPubKeyImpl(SecpFieldElement) - Constructor for class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- serialize() - Method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
- serialize() - Method in class org.bitcoinj.secp.internal.SecpScalarImpl
- serialize() - Method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- serialize() - Method in interface org.bitcoinj.secp.SecpFieldElement
-
Get serialized (big-endian) field element (32 bytes unsigned)
- serialize() - Method in interface org.bitcoinj.secp.SecpPoint.Compressed
-
Get the default serialization encoding
- serialize() - Method in interface org.bitcoinj.secp.SecpPoint.Uncompressed
-
Get the default serialization encoding
- serialize() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Serialize key in primary encoded format (compressed)
- serialize() - Method in interface org.bitcoinj.secp.SecpScalar
- serialize() - Method in interface org.bitcoinj.secp.SecpXOnlyPubKey
-
Serialize as a 32-byte, Big-endian byte array (no prefix byte)
- serialize(boolean) - Method in interface org.bitcoinj.secp.SecpPubKey
-
Return encoded key in either compressed or uncompressed SEC format.
- serializeCompact() - Method in interface org.bitcoinj.secp.EcdsaSignature
-
Serialize as a Bitcoin compact signature.
- serializeCompact() - Method in class org.bitcoinj.secp.internal.EcdsaSignatureImpl
- serializeCompressed() - Method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- serializeCompressed() - Method in interface org.bitcoinj.secp.SecpXOnlyPubKey
-
Serialize as SECG Compressed (i.e. an even value, prefixed with a 0x02 byte).
T
- taggedSha256(byte[], byte[]) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- taggedSha256(byte[], byte[]) - Method in interface org.bitcoinj.secp.Secp256k1
-
Generate a tagged SHA-256 hash.
- taggedSha256(String, String) - Method in interface org.bitcoinj.secp.Secp256k1
-
Generate a tagged SHA-256 hash.
- toBigInteger() - Method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
- toBigInteger() - Method in class org.bitcoinj.secp.internal.SecpScalarImpl
- toBigInteger() - Method in interface org.bitcoinj.secp.SecpFieldElement
-
Get the field element as a
BigInteger - toBigInteger() - Method in interface org.bitcoinj.secp.SecpScalar
-
Get the scalar as a
BigInteger - toECPoint() - Method in enum class org.bitcoinj.secp.SecpPoint.Infinity
- toECPoint() - Method in interface org.bitcoinj.secp.SecpPoint.Uncompressed
- toHexString(byte[]) - Static method in class org.bitcoinj.secp.internal.ByteUtils
-
Utility method to format hex bytes as string
- toInteger(byte[]) - Static method in interface org.bitcoinj.secp.internal.ByteArray
-
Utility to convert unsigned big-endian
byte[]to integer - toString() - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- toString() - Method in class org.bitcoinj.secp.internal.EcdsaSignatureImpl
- toString() - Method in class org.bitcoinj.secp.internal.SchnorrSignatureImpl
- toString() - Method in class org.bitcoinj.secp.internal.SecpFieldElementImpl
- toString() - Method in class org.bitcoinj.secp.internal.SecpKeyPairImpl
- toString() - Method in class org.bitcoinj.secp.internal.SecpPointCompressed
- toString() - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- toString() - Method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
- toString() - Method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- toString() - Method in enum class org.bitcoinj.secp.Secp256k1.ProviderId
U
- UInt256 - Interface in org.bitcoinj.secp.internal
-
Utility methods for handling UInt256 (32-byte unsigned) values.
- uncompress() - Method in class org.bitcoinj.secp.internal.SecpPointCompressed
- uncompress() - Method in interface org.bitcoinj.secp.SecpPoint.Compressed
-
Compute the y-value and return an uncompressed point.
V
- valueOf(String) - Static method in enum class org.bitcoinj.secp.Secp256k1.ProviderId
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class org.bitcoinj.secp.SecpPoint.Infinity
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.bitcoinj.secp.Secp256k1.ProviderId
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class org.bitcoinj.secp.SecpPoint.Infinity
-
Returns an array containing the constants of this enum class, in the order they are declared.
X
- x() - Method in class org.bitcoinj.secp.internal.SecpECPoint
- x() - Method in class org.bitcoinj.secp.internal.SecpPointCompressed
- x() - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- x() - Method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
- x() - Method in interface org.bitcoinj.secp.SecpPoint.Point
-
Get the x-coordinate field value
- xOnly() - Method in interface org.bitcoinj.secp.SecpPubKey
-
Return the x-only public key.
- xOnlyPubKeyParse(byte[]) - Method in class org.bitcoinj.secp.ffm.Secp256k1Foreign
- xOnlyPubKeyParse(byte[]) - Method in interface org.bitcoinj.secp.Secp256k1
-
Parse a byte array as an x-only public key
- xOnlyToSerializedCompressed(byte[]) - Static method in class org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
-
Convert to SECG Compressed serialization (i.e. an even value, prefixed with a 0x02 byte).
Y
- y() - Method in class org.bitcoinj.secp.internal.SecpECPoint
- y() - Method in class org.bitcoinj.secp.internal.SecpPointUncompressed
- y() - Method in class org.bitcoinj.secp.internal.SecpPubKeyImpl
- y() - Method in interface org.bitcoinj.secp.SecpPoint.Uncompressed
-
Get the y-coordinate field value
Z
- ZERO_VALUE - Static variable in interface org.bitcoinj.secp.internal.UInt256
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
Secp256k1.ecdsaSignatureParseCompact(byte[])