S - type of SignatureBinary.public class Secp256k1<S extends SignatureEcBc> extends AsymmetricAccessEcBc<S>
AsymmetricAccessEcBc for SecP256K1Curve.| Modifier and Type | Field and Description |
|---|---|
static CryptoEllipticCurveBc |
CURVE
The
elliptic curve. |
static String |
CURVE_NAME
The
curve name. |
ecParameterscryptorConfig, randomFactory| Constructor and Description |
|---|
Secp256k1(SignatureConfig<S> signatureConfig,
AsymmetricCryptorConfigEcIes<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey> cryptorConfig,
RandomFactory randomFactory)
The constructor.
|
Secp256k1(SignatureFactoryEcBc<S> signatureFactory,
HashConfig hashConfig,
RandomFactory randomFactory)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static <S extends SignatureEcBc> |
of(SignatureFactoryEcBc<S> signatureFactory,
HashConfig hashConfig,
RandomFactory randomFactory) |
static Secp256k1<SignatureEcBcPlain> |
ofPlain(HashConfig hashConfig) |
static Secp256k1<SignatureEcBcPlain> |
ofPlain(String hashAlgorithm) |
static Secp256k1<SignatureEcBcWithRecoveryId> |
ofRecoveryId(HashConfig hashConfig) |
static Secp256k1<SignatureEcBcWithRecoveryId> |
ofRecoveryId(String hashAlgorithm) |
newKeyCreatorcreateSignature, getCryptorConfig, getSignatureConfig, getSignatureFactoryWithoutHash, newDecryptor, newDecryptorUnsafe, newEncryptor, newEncryptorUnsafe, newHashCreator, newSigner, newVerifierclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnewSignerUnsafe, newVerifierUnsafepublic static final String CURVE_NAME
curve name.public static final CryptoEllipticCurveBc CURVE
elliptic curve.public Secp256k1(SignatureConfig<S> signatureConfig, AsymmetricCryptorConfigEcIes<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey> cryptorConfig, RandomFactory randomFactory)
signatureConfig - the SignatureConfig.cryptorConfig - the AsymmetricCryptorConfigEcIes.randomFactory - the optional RandomFactory.public Secp256k1(SignatureFactoryEcBc<S> signatureFactory, HashConfig hashConfig, RandomFactory randomFactory)
signatureFactory - the SignatureFactoryEcBc.hashConfig - the HashConfig for the hash used for signatures.randomFactory - the RandomFactory.public static Secp256k1<SignatureEcBcPlain> ofPlain(String hashAlgorithm)
public static Secp256k1<SignatureEcBcPlain> ofPlain(HashConfig hashConfig)
hashConfig - the HashConfig for the hash used for signatures.Secp256k1 instance for default signature.public static Secp256k1<SignatureEcBcWithRecoveryId> ofRecoveryId(String hashAlgorithm)
public static Secp256k1<SignatureEcBcWithRecoveryId> ofRecoveryId(HashConfig hashConfig)
hashConfig - the HashConfig for the hash used for signatures.Secp256k1 instance for bitcoin signature.public static <S extends SignatureEcBc> Secp256k1<S> of(SignatureFactoryEcBc<S> signatureFactory, HashConfig hashConfig, RandomFactory randomFactory)
S - type of signature.signatureFactory - the SignatureFactoryEcBc.hashConfig - the HashConfig for the hash used for signatures.randomFactory - the RandomFactory.Secp256k1 instance for the given parameters.Copyright © 2001–2019 mmm-Team. All rights reserved.