Class AProvider

All Implemented Interfaces:
Serializable, Cloneable, Map<Object,Object>
Direct Known Subclasses:
BCProvider

public abstract class AProvider extends Provider
Abstract base class for Custom Convex security providers
See Also:
  • Constructor Details

  • Method Details

    • verify

      public abstract boolean verify(ASignature signature, AArrayBlob message, AccountKey publicKey)
      Verify an Ed25519 Signature
      Parameters:
      signature - Signature
      message - Message
      publicKey - Public Key
      Returns:
      true if verified, false otherwise
    • generate

      public AKeyPair generate()
      Generates a secure random key pair. Uses the default SecureRandom provider as provided by the current JVM environment.
      Returns:
      New key pair
    • generate

      public AKeyPair generate(SecureRandom random)
      Generates a key pair using the provided source of randomness. SECURITY WARNING: Security of the key pair depends on security of the source of randomness
      Parameters:
      random - A secure random instance
      Returns:
      New key pair
    • create

      public abstract AKeyPair create(Blob seed)
      Create a key pair with the given seed
      Parameters:
      seed - Seed bytes for Key generation (32 bytes)
      Returns:
      Key Pair instance