mirror of
https://github.com/block/buzz.git
synced 2026-10-30 22:11:36 +00:00
docs(agent-broker): require public keys to be valid x-only points
Review on the contract asked the pubkey type to preserve the public-key invariant rather than accept any 64 hex characters; the contract is being tightened to match, so the spec states the rule. Co-authored-by: Bradley Axen <baxen@squareup.com> Signed-off-by: Bradley Axen <baxen@squareup.com>
This commit is contained in:
@@ -210,7 +210,9 @@ value is canonical whether it was constructed or parsed:
|
||||
sender may use uppercase, the unhyphenated 32-character form, braces, or a
|
||||
`urn:uuid:` prefix and will be read as having sent the canonical form.
|
||||
- A **public key**, **event id**, or **d-tag** is 64 hex characters. Canonical
|
||||
form is lowercase.
|
||||
form is lowercase. A public key must additionally be a valid secp256k1
|
||||
x-only point — 64 hex characters that name no point on the curve are
|
||||
malformed, not merely useless.
|
||||
|
||||
Without this, a caller's spelling of a channel and `H`'s canonical echo of the
|
||||
same channel would fail I5's correlation check for a correct answer. The
|
||||
|
||||
Reference in New Issue
Block a user