Module io.github.mmm.crypto.bc
Class Secp256k1<S extends SignatureEcBc>
- java.lang.Object
- 
- io.github.mmm.crypto.CryptoAccess
- 
- io.github.mmm.crypto.asymmetric.access.AsymmetricAccess<S,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey,AsymmetricKeyPairEcBc,AsymmetricKeyCreatorEcBc>
- 
- io.github.mmm.crypto.asymmetric.access.ec.bc.AsymmetricAccessEcBc<S>
- 
- io.github.mmm.crypto.asymmetric.access.ec.bc.Secp256k1<S>
 
 
 
 
- 
- Type Parameters:
- S- type of- SignatureBinary.
 - All Implemented Interfaces:
- AbstractCryptoFactory,- AsymmetricCryptorFactory<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey>,- AsymmetricKeyCreatorFactory<AsymmetricKeyCreatorEcBc>,- SignatureFactory<S>,- SignatureProcessorFactory<S,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey>,- CryptorFactory,- HashFactory,- KeyCreatorFactory
 
 public class Secp256k1<S extends SignatureEcBc> extends AsymmetricAccessEcBc<S> AsymmetricAccessEcBcforSecP256K1Curve.- Since:
- 1.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
 
- 
- 
Field SummaryFields Modifier and Type Field Description static CryptoEllipticCurveBcCURVETheelliptic curve.static StringCURVE_NAMEThecurve name.- 
Fields inherited from class io.github.mmm.crypto.asymmetric.access.ec.bc.AsymmetricAccessEcBcecParameters
 - 
Fields inherited from class io.github.mmm.crypto.asymmetric.access.AsymmetricAccesscryptorConfig, randomFactory
 
- 
 - 
Constructor SummaryConstructors Constructor Description Secp256k1(SignatureFactoryEcBc<S> signatureFactory, HashConfig hashConfig, RandomFactory randomFactory)The constructor.Secp256k1(SignatureConfig<S> signatureConfig, AsymmetricCryptorConfigEcIes<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey> cryptorConfig, RandomFactory randomFactory)The constructor.
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static <S extends SignatureEcBc>
 Secp256k1<S>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)- 
Methods inherited from class io.github.mmm.crypto.asymmetric.access.ec.bc.AsymmetricAccessEcBcnewKeyCreator
 - 
Methods inherited from class io.github.mmm.crypto.asymmetric.access.AsymmetricAccesscreateSignature, getCryptorConfig, getSignatureConfig, getSignatureFactoryWithoutHash, newDecryptor, newDecryptorUnsafe, newEncryptor, newEncryptorUnsafe, newHashCreator, newSigner, newVerifier
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface io.github.mmm.crypto.asymmetric.sign.SignatureProcessorFactorynewSignerUnsafe, newVerifierUnsafe
 
- 
 
- 
- 
- 
Field Detail- 
CURVE_NAMEpublic static final String CURVE_NAME Thecurve name.- See Also:
- Constant Field Values
 
 - 
CURVEpublic static final CryptoEllipticCurveBc CURVE Theelliptic curve.
 
- 
 - 
Constructor Detail- 
Secp256k1public Secp256k1(SignatureConfig<S> signatureConfig, AsymmetricCryptorConfigEcIes<org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey,org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey> cryptorConfig, RandomFactory randomFactory) The constructor.- Parameters:
- signatureConfig- the- SignatureConfig.
- cryptorConfig- the- AsymmetricCryptorConfigEcIes.
- randomFactory- the optional- RandomFactory.
 
 - 
Secp256k1public Secp256k1(SignatureFactoryEcBc<S> signatureFactory, HashConfig hashConfig, RandomFactory randomFactory) The constructor.- Parameters:
- signatureFactory- the- SignatureFactoryEcBc.
- hashConfig- the- HashConfigfor the hash used for signatures.
- randomFactory- the- RandomFactory.
 
 
- 
 - 
Method Detail- 
ofPlainpublic static Secp256k1<SignatureEcBcPlain> ofPlain(String hashAlgorithm) 
 - 
ofPlainpublic static Secp256k1<SignatureEcBcPlain> ofPlain(HashConfig hashConfig) - Parameters:
- hashConfig- the- HashConfigfor the hash used for signatures.
- Returns:
- a Secp256k1instance for default signature.
 
 - 
ofRecoveryIdpublic static Secp256k1<SignatureEcBcWithRecoveryId> ofRecoveryId(String hashAlgorithm) 
 - 
ofRecoveryIdpublic static Secp256k1<SignatureEcBcWithRecoveryId> ofRecoveryId(HashConfig hashConfig) - Parameters:
- hashConfig- the- HashConfigfor the hash used for signatures.
- Returns:
- a Secp256k1instance for bitcoin signature.
 
 - 
ofpublic static <S extends SignatureEcBc> Secp256k1<S> of(SignatureFactoryEcBc<S> signatureFactory, HashConfig hashConfig, RandomFactory randomFactory) - Type Parameters:
- S- type of- signature.
- Parameters:
- signatureFactory- the- SignatureFactoryEcBc.
- hashConfig- the- HashConfigfor the hash used for signatures.
- randomFactory- the- RandomFactory.
- Returns:
- a Secp256k1instance for the given parameters.
 
 
- 
 
-