-

@ reis
2024-09-11 09:07:36
# NUD: Pubkey to waveform
This NUD defines how to convert pubkey to waveform.

[Live demo](https://1l0.github.io/hexpattern/)
## Why?
- `npub` is nonsense to display.
- too long.
- `npub1bla...bla` is nonsense to display.
- `npub1` takes too much space.
- `...` means nothing.
## Specs
- Uses hex pubkey.
- Converts 64 characters into 32 scalars.
- Splits 64 with 2 length chunks.
- Converts each chunk into a scalar.
- `0 ~ 255` to `-1.0 ~ 1.0`
[Code](https://github.com/1l0/hexpattern)