ts-algochat
    Preparing search index...

    Function parseKeyAnnouncement

    • Parse a key announcement from a transaction note.

      Key announcement format:

      • 32 bytes: X25519 public key
      • 64 bytes (optional): Ed25519 signature

      Parameters

      • note: Uint8Array

        The transaction note field

      • Optionaled25519PublicKey: Uint8Array<ArrayBufferLike>

        The sender's Ed25519 public key (for verification)

      Returns DiscoveredKey | undefined

      DiscoveredKey if valid, undefined otherwise