Merged
Conversation
…ses, Go test defaults Co-authored-by: lightsing <15951701+lightsing@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update and fix other language SDKs based on latest Rust UTS-SDK
Align TS, Python, Go SDKs with Rust reference implementation
Mar 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cross-SDK audit against the Rust core (
crates/core/) found binary format, validation, and configuration mismatches.TypeScript SDK
writeU32→writeBigUint(BigInt(...))to match Rust's u64 LEB128 encoding. This is a binary compatibility issue — chain IDs >2³² would produce incorrect wire format.\s) and enforcedhttp(s)://prefix. Rust validates a strict character whitelist only:a-zA-Z0-9.-_/:.0xC2679f...→0xC47300...to match Rust/Go.Python SDK
^https?://[^\s]+$accepted?,#,&,@etc. Aligned encoder and decoder to Rust's character whitelist.test_invalid_url_formatnow uses a URL with?/&(chars rejected by the Rust whitelist) instead of"not-a-url"(which only contains allowed chars).Go SDK
lgm1.calendar.test.timestamps.nowfor consistency with Rust.TestNewSDKsubtests expected 1 calendar / 1 quorum butDefaultCalendarshas 5 entries →ceil(5 × 0.66) = 4quorum. Updated test assertions to match.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
a.pool.eternitywall.com/usr/bin/python python -m pytest tests/ -v llector.slice --global de/node/bin/bash user.email(dns block)/usr/bin/python python -m pytest tests/ -v u/13/liblto_plugin.so _64-linux-gnu/13/lto-wrapper o6EASp.res pkg/mod/go.opent/opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s ndor/bin/as as s in.so /lto-wrapper rgo/bin/as in.so /lto-wrapper rgo/bin/as gcc(dns block)/usr/bin/python python -m pytest tests/ -v /tmp/go-build1278911479/b313/codec.test -importcfg u/13/collect2 -s -w -buildmode=exe u/13/collect2 --64�� u/13/liblto_plug-quiet _64-linux-gnu/13-dumpdir HYrgKW.res /home/REDACTED/go//opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s tnet/tools/as /opt/hostedtoolc-buildtags(dns block)a.pool.opentimestamps.org/usr/bin/python python -m pytest tests/ -v llector.slice --global de/node/bin/bash user.email(dns block)/usr/bin/python python -m pytest tests/ -v u/13/liblto_plugin.so _64-linux-gnu/13/lto-wrapper o6EASp.res pkg/mod/go.opent/opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s ndor/bin/as as s in.so /lto-wrapper rgo/bin/as in.so /lto-wrapper rgo/bin/as gcc(dns block)/usr/bin/python python -m pytest tests/ -v /tmp/go-build1278911479/b313/codec.test -importcfg u/13/collect2 -s -w -buildmode=exe u/13/collect2 --64�� u/13/liblto_plug-quiet _64-linux-gnu/13-dumpdir HYrgKW.res /home/REDACTED/go//opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s tnet/tools/as /opt/hostedtoolc-buildtags(dns block)alice.btc.calendar.opentimestamps.org/usr/bin/python python -m pytest tests/ -v llector.slice --global de/node/bin/bash user.email(dns block)/usr/bin/python python -m pytest tests/ -v u/13/liblto_plugin.so _64-linux-gnu/13/lto-wrapper o6EASp.res pkg/mod/go.opent/opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s ndor/bin/as as s in.so /lto-wrapper rgo/bin/as in.so /lto-wrapper rgo/bin/as gcc(dns block)/usr/bin/python python -m pytest tests/ -v /tmp/go-build1278911479/b313/codec.test -importcfg u/13/collect2 -s -w -buildmode=exe u/13/collect2 --64�� u/13/liblto_plug-quiet _64-linux-gnu/13-dumpdir HYrgKW.res /home/REDACTED/go//opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s tnet/tools/as /opt/hostedtoolc-buildtags(dns block)b.pool.opentimestamps.org/usr/bin/python python -m pytest tests/ -v llector.slice --global de/node/bin/bash user.email(dns block)/usr/bin/python python -m pytest tests/ -v u/13/liblto_plugin.so _64-linux-gnu/13/lto-wrapper o6EASp.res pkg/mod/go.opent/opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s ndor/bin/as as s in.so /lto-wrapper rgo/bin/as in.so /lto-wrapper rgo/bin/as gcc(dns block)/usr/bin/python python -m pytest tests/ -v /tmp/go-build1278911479/b313/codec.test -importcfg u/13/collect2 -s -w -buildmode=exe u/13/collect2 --64�� u/13/liblto_plug-quiet _64-linux-gnu/13-dumpdir HYrgKW.res /home/REDACTED/go//opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s tnet/tools/as /opt/hostedtoolc-buildtags(dns block)bitcoin-rpc.publicnode.com/opt/hostedtoolcache/node/24.14.0/x64/bin/node /opt/hostedtoolcache/node/24.14.0/x64/bin/node --conditions node --conditions development --experimental-import-meta-resolve --require /home/REDACTED/work/uts/uts/node_modules/.pnpm/vitest@4.0.18_@types+node@24.10.4_@vitest+browser-playwright@4.0.18_jiti@2.6.1_lightnin_64d18c28a99bad70e3ee02f5c6f46702/node_modules/vitest/suppress-warnings.cjs /home/REDACTED/work/uts/uts/node_modules/.pnpm/vitest@4.0.18_@types+node@24.10.4_@vitest+browser-playwright@4.0.18_jiti@2.6.1_lightnin_64d18c28a99bad70e3ee02f5c6f46702/node_modules/vitest/dist/workers/forks.js(dns block)/usr/bin/python python -m pytest tests/ -v llector.slice --global de/node/bin/bash user.email(dns block)/usr/bin/python python -m pytest tests/ -v u/13/liblto_plugin.so _64-linux-gnu/13/lto-wrapper o6EASp.res pkg/mod/go.opent/opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s ndor/bin/as as s in.so /lto-wrapper rgo/bin/as in.so /lto-wrapper rgo/bin/as gcc(dns block)lgm1.calendar.test.timestamps.now/usr/bin/python python -m pytest tests/ -v llector.slice --global de/node/bin/bash user.email(dns block)/usr/bin/python python -m pytest tests/ -v u/13/liblto_plugin.so _64-linux-gnu/13/lto-wrapper o6EASp.res pkg/mod/go.opent/opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s ndor/bin/as as s in.so /lto-wrapper rgo/bin/as in.so /lto-wrapper rgo/bin/as gcc(dns block)/usr/bin/python python -m pytest tests/ -v /tmp/go-build1278911479/b313/codec.test -importcfg u/13/collect2 -s -w -buildmode=exe u/13/collect2 --64�� u/13/liblto_plug-quiet _64-linux-gnu/13-dumpdir HYrgKW.res /home/REDACTED/go//opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s tnet/tools/as /opt/hostedtoolc-buildtags(dns block)ots.btc.catallaxy.com/usr/bin/python python -m pytest tests/ -v llector.slice --global de/node/bin/bash user.email(dns block)/usr/bin/python python -m pytest tests/ -v u/13/liblto_plugin.so _64-linux-gnu/13/lto-wrapper o6EASp.res pkg/mod/go.opent/opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s ndor/bin/as as s in.so /lto-wrapper rgo/bin/as in.so /lto-wrapper rgo/bin/as gcc(dns block)/usr/bin/python python -m pytest tests/ -v /tmp/go-build1278911479/b313/codec.test -importcfg u/13/collect2 -s -w -buildmode=exe u/13/collect2 --64�� u/13/liblto_plug-quiet _64-linux-gnu/13-dumpdir HYrgKW.res /home/REDACTED/go//opt/hostedtoolcache/go/1.24.13/x64/pkg/tool/linux_amd64/vet s tnet/tools/as /opt/hostedtoolc-buildtags(dns block)If you need me to access, download, or install something from one of these locations, you can either:
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.