Repository navigation
1.3.0
All five SDKs (Go, Node, Python, Java, C#) now behave the same under one shared contract and one set of cross-language tests (#399). The shared rules are in docs/CROSS_SDK_RULES.md.
New
- One custom-signer shape in every SDK (#398): a function from a 32-byte digest to a signature and a 65-byte uncompressed public key. Go
crypto.SignFn, NodeSignerFunction, PythonSignFn, JavaDigestSigner(now a functional interface), C#SignFn. Every SDK has a signer-from-hex factory whose result is the client's signer argument. The client checks the signer's output before sending, and a signer that fails gives Internal "signing the request failed: ". Hex-key calls are unchanged. - Public helpers in every SDK:
PublicKeyFromPrivateKey, and a response-validation helper (C# gainsValidate.Check). Node'svalidatetakes theregistryoption for predefined rules declared in the application's own protos.
Breaking changes
- Node
toleranceMsandDEFAULT_TOLERANCE_MSare removed. - The timestamp-window constants Java
Headers.TIMESTAMP_VALIDITY_WINDOW_MS, C#Headers.TimestampValidityWindow, NodeREQUEST_VALIDITY_MILLISand PythonTIMESTAMP_TOLERANCE_MSare removed. Each SDK now has one window constant. - C#
T0Config.FromEnvironmentandQuotePublisherServicemoved to the C# starter. - Custom-signer code:
- Go and Python refuse a private key together with a custom signer.
- C# custom signers move to
SignFn.ISignerstays as an obsolete compatibility path.
Deprecated, not removed
- Java
withMaxInboundMessageSizeandDEFAULT_ENDPOINT. - Node
DEFAULT_ENDPOINT,createService(...).contextValuesandsignatureValidation. - C#
ISigner. - Go
ServerStartupTimeout.
Other changes you may notice
- Servers: Go serves an
Upgrade: h2crequest as HTTP/1.1, andStartServerreturns once the port is bound. C# response validation now applies predefined rules declared in the application's own protos, so a response that breaks one is refused, as in Go, Java and Python. - Clients: whitespace inside a base URL is refused. Node accepts gzip responses. Java and C# send no keepalive pings, and C# keeps no cookies.
- Messages: several SDK error texts changed to the shared ones (timeouts, signer, validation field paths). Node's request verifier answers a wrong-length signature with 401, and a bare
0xis refused. - Dependencies: Python requires protovalidate 2.0 or newer. Node pins
@noble/curvesand@noble/hashesto 2.4.0. - Starters: they share their values: port 8080, and a quote interval outside 1..2147483647 falls back to 5000.
Full Changelog: v1.2.2...v1.3.0