Packages

o

net.glorat.dlcrypto.ecdsa

ECDSASignerDemo

object ECDSASignerDemo extends Signer

This signer uses industry and java library standard encoding formats of PKCS8 for private keys and X509 for public keys These formats are larger than bitcoin formats

This scheme isn't used anywhere to my knowledge so is kept here as reference and is not fully implemented

It remains useful since the code is clean and it shows how another signer can be implemented

Linear Supertypes
Signer, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ECDSASignerDemo
  2. Signer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ByteSignature(data: Array[Byte]) extends Signature with Product with Serializable
  2. class MyKey extends PrivateKeyExtProvider
  3. class MyPublicKey extends PublicKeyExtProvider

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val algorithmName: String
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def createSignature(data: Array[Byte]): ByteSignature
    Definition Classes
    ECDSASignerDemo → Signer
  8. def createSigningKey(data: Array[Byte]): PrivateKey
    Definition Classes
    ECDSASignerDemo → Signer
  9. def createSigningKeyFromHex(key: String): PrivateKey
    Definition Classes
    Signer
  10. def createVerificationKey(d: Array[Byte]): PublicKey
    Definition Classes
    ECDSASignerDemo → Signer
  11. def createVerificationKeyFromHex(key: String): PublicKey
    Definition Classes
    Signer
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def generate(rng: SecureRandom): KeyPair
    Definition Classes
    ECDSASignerDemo → Signer
  16. def generate(): KeyPair
    Definition Classes
    ECDSASignerDemo → Signer
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def handlesPrivateKey(key: PrivateKey): Boolean
    Definition Classes
    ECDSASignerDemo → Signer
  19. def handlesPublicKey(key: PublicKey): Boolean
    Definition Classes
    ECDSASignerDemo → Signer
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def inferPublicKey(priv: PrivateKey): PublicKey
    Definition Classes
    ECDSASignerDemo → Signer
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. def privateKeyExtProvider(key: PrivateKey): PrivateKeyExtProvider
    Definition Classes
    ECDSASignerDemo → Signer
  27. val providerName: String
    Definition Classes
    ECDSASignerDemo → Signer
  28. def publicKeyExtProvider(key: PublicKey): PublicKeyExtProvider
    Definition Classes
    ECDSASignerDemo → Signer
  29. def sign(data: Array[Byte], key: PrivateKey): ByteSignature
    Definition Classes
    ECDSASignerDemo → Signer
  30. def sign(data: Hash, keyBytes: Array[Byte]): Signature
    Definition Classes
    Signer
  31. def sign(data: Hash, key: PrivateKey): Signature
    Definition Classes
    Signer
  32. def signToBytes(data: Hash, keyBytes: Array[Byte]): Array[Byte]
    Definition Classes
    Signer
  33. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def verify(message: Array[Byte], sig: Signature, identity: PublicKey): Boolean
    Attributes
    protected
    Definition Classes
    ECDSASignerDemo → Signer
  36. def verify(data: Array[Byte], sig: ByteSignature, identity: PublicKey): Boolean
  37. def verify(data: Hash, sig: Signature, identity: PublicKey): Boolean
    Definition Classes
    Signer
  38. def verify(data: Hash, sig: Seq[Byte], identity: Seq[Byte]): Boolean
    Definition Classes
    Signer
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Signer

Inherited from AnyRef

Inherited from Any

Ungrouped