basis-company / nats.php

nats jetstream client for php
116 stars 29 forks source link

feat: public NKey in connect for verifying the signature #54

Closed smsteel closed 7 months ago

smsteel commented 7 months ago

For information, see: https://docs.nats.io/reference/reference-protocols/nats-protocol#syntax-1

The algorithm was reverse-engineered from nats.py client: https://github.com/nats-io/nats.py/blob/3dbc3cfbfae32174b5000a53398140631d488636/nats/aio/client.py#L603C3-L603C3

Tested against NATS 2.9.15

Fixes #38

nekufa commented 7 months ago

@smsteel looks great, thanks for the contribution!