Class SecpKeyPairImpl
java.lang.Object
org.bitcoinj.secp.internal.SecpKeyPairImpl
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, ECKey, ECPrivateKey, Key, PrivateKey, Destroyable, SecpKeyPair, SecpPrivKey
- See Also:
-
Field Summary
Fields inherited from interface ECPrivateKey
serialVersionUID -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Destroyable
isDestroyedMethods inherited from interface SecpPrivKey
getAlgorithm, getFormat, getParams, getS
-
Constructor Details
-
SecpKeyPairImpl
-
-
Method Details
-
publicKey
Description copied from interface:SecpKeyPairGet the public key- Specified by:
publicKeyin interfaceSecpKeyPair- Returns:
- public key
-
privateKey
Description copied from interface:SecpKeyPairGet the private key- Specified by:
privateKeyin interfaceSecpKeyPair- Returns:
- private key
-
getEncoded
public byte[] getEncoded()- Specified by:
getEncodedin interfaceKey- Specified by:
getEncodedin interfaceSecpPrivKey- Returns:
- 32-bytes, Big endian with no prefix or suffix
-
destroy
public void destroy()Description copied from interface:SecpPrivKeyDestroy must be implemented and must not throw (checked) exceptions- Specified by:
destroyin interfaceDestroyable- Specified by:
destroyin interfaceSecpPrivKey
-
toString
-