Blockchain Commons Crypto TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function ed25519Sign

    • Sign a message using Ed25519.

      Security Note: The private key must be kept secret. The same private key can safely sign multiple messages.

      Parameters

      • privateKey: Uint8Array

        32-byte Ed25519 private key

      • message: Uint8Array

        Message to sign (any length)

      Returns Uint8Array

      64-byte Ed25519 signature

      If private key is not 32 bytes