Fix channel key generation to use correct format

Use generate_channel_key() from channel module instead of hex
Format: XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Aaron D. Lee
2026-01-02 22:02:33 -05:00
parent 6b1b306f61
commit 61c5178752

View File

@@ -458,7 +458,8 @@ def generate(ctx, words, pin_length, channel_key):
# Generate channel key if requested
if channel_key:
result["channel_key"] = secrets.token_hex(32)
from .channel import generate_channel_key
result["channel_key"] = generate_channel_key()
if ctx.obj.get("json"):
click.echo(json.dumps(result, indent=2))