addEd25519FromRawKey

suspend fun addEd25519FromRawKey(secretKeyBytes: ByteArray, verifierAddress: String): ByteArray

Registers an Ed25519 signing keypair derived from raw 32-byte secret key material and stores it in memory under the composite (verifierAddress, publicKey) key. The keypair is never persisted to storage and is lost when the application terminates.

If a keypair is already registered for the same (verifierAddress, publicKey) pair it is silently overwritten.

secretKeyBytes must be exactly 32 bytes — the raw Ed25519 seed. This is not a Stellar S-strkey; it is the raw seed material. For hardware wallets, HSMs, or remote signing services, supply an OZExternalEd25519SignerAdapter at construction instead — the raw secret never enters process memory.

verifierAddress is the C-strkey of the Ed25519 verifier contract under which the signer is registered on-chain.

Return

The derived 32-byte Ed25519 public key.

Parameters

secretKeyBytes

The 32-byte raw Ed25519 seed.

verifierAddress

The C-strkey of the Ed25519 verifier contract.

Throws

when keypair construction fails.