TestMessageSigner

Internal test key provider for testing purposes ONLY.

WARNING: Never use this in production! This provider generates and stores keys in memory without any security guarantees. It's only meant for:

  • Unit tests

  • Integration tests

  • Development/debugging

For production, implement your own MessageSigner with:

  • Android: Android Keystore

  • iOS: Secure Enclave

  • Hardware: Ledger, Trezor

  • Cloud: AWS KMS, Google Cloud KMS

See also

for secure implementation examples

Properties

Link copied to clipboard
val ecdsaMessageSigner: ECDSAMessageSigner
Link copied to clipboard
open override val keyType: MessageSigner.KeyType
Link copied to clipboard
open override val verifyingKey: ByteArray

Functions

Link copied to clipboard
open suspend override fun sign(data: ByteArray): ByteArray