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
Ordering
- Alphabetic
- By Inheritance
Inherited
- ECDSASignerDemo
- Signer
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
- case class ByteSignature(data: Array[Byte]) extends Signature with Product with Serializable
- class MyKey extends PrivateKeyExtProvider
- class MyPublicKey extends PublicKeyExtProvider
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val algorithmName: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
createSignature(data: Array[Byte]): ByteSignature
- Definition Classes
- ECDSASignerDemo → Signer
-
def
createSigningKey(data: Array[Byte]): PrivateKey
- Definition Classes
- ECDSASignerDemo → Signer
-
def
createSigningKeyFromHex(key: String): PrivateKey
- Definition Classes
- Signer
-
def
createVerificationKey(d: Array[Byte]): PublicKey
- Definition Classes
- ECDSASignerDemo → Signer
-
def
createVerificationKeyFromHex(key: String): PublicKey
- Definition Classes
- Signer
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
generate(rng: SecureRandom): KeyPair
- Definition Classes
- ECDSASignerDemo → Signer
-
def
generate(): KeyPair
- Definition Classes
- ECDSASignerDemo → Signer
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
handlesPrivateKey(key: PrivateKey): Boolean
- Definition Classes
- ECDSASignerDemo → Signer
-
def
handlesPublicKey(key: PublicKey): Boolean
- Definition Classes
- ECDSASignerDemo → Signer
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
inferPublicKey(priv: PrivateKey): PublicKey
- Definition Classes
- ECDSASignerDemo → Signer
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
privateKeyExtProvider(key: PrivateKey): PrivateKeyExtProvider
- Definition Classes
- ECDSASignerDemo → Signer
-
val
providerName: String
- Definition Classes
- ECDSASignerDemo → Signer
-
def
publicKeyExtProvider(key: PublicKey): PublicKeyExtProvider
- Definition Classes
- ECDSASignerDemo → Signer
-
def
sign(data: Array[Byte], key: PrivateKey): ByteSignature
- Definition Classes
- ECDSASignerDemo → Signer
-
def
sign(data: Hash, keyBytes: Array[Byte]): Signature
- Definition Classes
- Signer
-
def
sign(data: Hash, key: PrivateKey): Signature
- Definition Classes
- Signer
-
def
signToBytes(data: Hash, keyBytes: Array[Byte]): Array[Byte]
- Definition Classes
- Signer
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
verify(message: Array[Byte], sig: Signature, identity: PublicKey): Boolean
- Attributes
- protected
- Definition Classes
- ECDSASignerDemo → Signer
- def verify(data: Array[Byte], sig: ByteSignature, identity: PublicKey): Boolean
-
def
verify(data: Hash, sig: Signature, identity: PublicKey): Boolean
- Definition Classes
- Signer
-
def
verify(data: Hash, sig: Seq[Byte], identity: Seq[Byte]): Boolean
- Definition Classes
- Signer
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )