ts-algochat
    Preparing search index...

    Function signEncryptionKey

    • Signs an encryption public key with an Ed25519 signing key.

      This creates a cryptographic proof that the encryption key belongs to the holder of the Ed25519 private key (Algorand account).

      Parameters

      • encryptionPublicKey: Uint8Array

        The X25519 public key to sign (32 bytes)

      • signingKey: Uint8Array

        The Ed25519 signing key (32 bytes private key)

      Returns Uint8Array

      The Ed25519 signature (64 bytes)

      If the key lengths are invalid