Package convex.core.crypto.bc
Class BCKeyPair
java.lang.Object
convex.core.crypto.AKeyPair
convex.core.crypto.bc.BCKeyPair
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters
Secret key in the specific format that Sodium expects, we wrap this complexity in this classstatic long
Fields inherited from class convex.core.crypto.AKeyPair
ED25519, SEED_LENGTH
-
Method Summary
Modifier and TypeMethodDescriptionstatic BCKeyPair
boolean
Tests if this keypair is equal to another key pair.boolean
Gets the Account Public Key of this KeyPairgetSeed()
Gets the Ed25519 seed for this key pairsign
(AArrayBlob hash) Signs a message with this key pair, producing a signature of the appropriate type.<R extends ACell>
SignedData<R> signData
(R value) Signs a data value with this key pairMethods inherited from class convex.core.crypto.AKeyPair
create, create, create, create, createSeeded, equals, extractAccountKey, extractSeed, generate, getJCAKeyPair, getPrivate, getPublic, getPublicKeyBytes, privateFromBytes, privateKeyFromBlob, privateKeyFromBytes, publicKeyFromBytes, toString
-
Field Details
-
priv
protected final org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters privSecret key in the specific format that Sodium expects, we wrap this complexity in this class -
signatureCount
public static long signatureCount
-
-
Method Details
-
create
-
getSeed
-
getAccountKey
Description copied from class:AKeyPair
Gets the Account Public Key of this KeyPair- Specified by:
getAccountKey
in classAKeyPair
- Returns:
- AccountKey for this KeyPair
-
signData
Description copied from class:AKeyPair
Signs a data value with this key pair -
sign
Description copied from class:AKeyPair
Signs a message with this key pair, producing a signature of the appropriate type. -
equals
Description copied from class:AKeyPair
Tests if this keypair is equal to another key pair. Generally, a key pair should be considered equal if it has the same public key and produces identical signatures in all cases. -
equals
-