Repository navigation
Releases
Releases · a-shannon/a-shannon.github.io
v1.3.0 — TypeScript .d.ts & Native ES Module (.mjs) Testnet Kit
Ergo Testnet & Nautilus EIP-12 Kit v1.3.0 — TypeScript Definitions (.d.ts) + Native ES Module (.mjs)
What's New in v1.3.0
- Full TypeScript Definitions (
ergo-testnet-kit.d.ts): complete strict types for all 30 exports (SigmaCodecs,ErgoBoxLike,Eip12UnsignedTransaction,NetworkState,NautilusWalletContext,BroadcastResult, and every EIP-12 P2S builder). - Standalone Zero-Dependency ES Module (
ergo-testnet-kit.mjs): works natively via<script type="module">from GitHub Pages CDN, Node.js ESM (import kit, { Sigma, fetchBestNetworkState } from "./ergo-testnet-kit.mjs"), Vite, Next.js, and Fleet SDK projects — verified 30/30 exports identical against CJS/UMDergo-testnet-kit.js. - Dual-Package
package.json(@a-shannon/ergo-testnet-kit): clean"exports"map supportingimport,require, andtypesout of the box.
Usage
// TypeScript / ES Module (Node.js, Vite, Next.js, or Browser):
import { Sigma, fetchBestNetworkState, connectNautilus, buildEip12LockTx } from "https://a-shannon.github.io/lib/ergo-testnet-kit.mjs";<!-- Classic Zero-Build Script Tag: -->
<script src="https://a-shannon.github.io/lib/ergo-testnet-kit.js"></script>v1.2.0 — Ergo Testnet Kit (Auto-Failover, Stale-Indexer Alert, 0-Sig Finalize) & Block #670,037 PQ Proofs
Ergo Testnet & Nautilus EIP-12 JS Kit v1.2.0 + Block #670,037 Post-Quantum Zero-Fork Proofs
What's New in ergo-testnet-kit.js v1.2.0
- Smart Multi-Endpoint Auto-Failover (
fetchBestNetworkState): probes local Ergo node (http://127.0.0.1:9052) and public Testnet Explorer (https://api-testnet.ergoplatform.com) in parallel and automatically selects the highest live chain tip. - Stale-Indexer Lag Detection (
lagMinutes,isStale): detects when a public Explorer lags >30 minutes behind chain tip so dApps can alert users cleanly instead of silently showing stale UTXO heights. - Permissionless 0-Signature Recovery Finalize (
buildEip12SocialFinalizeTx): buildsSocialRecoveryWalletmode = 3Ltransactions verified directly on ScalaSigmaPropVerifier 6.0.3withproofBytes = 0 B(cost = 328). - 14/14 Byte-for-Byte Sigma
ValueSerializer+ Base58Check Parity verified against Scalasigma-state 6.0.3in Node.js CI, plus 4/4 Social Recovery / DailyLimit and 3/3 PTLC / HTLC EIP-12 spend builders verified onSigmaPropVerifier.
Mined On-Chain Ergo Testnet Proofs (11 / 11 Confirmed)
- Block
#670,037— Post-Quantum Zero-Fork WOTS+ (0 BSchnorr, Zerosecp256k1):- PQ-1 Mint Singleton NFT & Lock:
ab2dba212b174aefcc46fc51fdfe2bf2b844fad8fd8c8504af374b2d30943351 - PQ-2 WOTS+ Leaf
#0Partial Spend (proofBytes = 0 B,cost = 11,537/1.15%):bb4162a3dee977eb3f9f9b6f4d5a9e11e8d8d342cc8b9e5fd878c2f98cf55675 - PQ-3 WOTS+ Leaf
#1Consecutive Spend (proofBytes = 0 B,cost = 11,742/1.17%):ef77a6837eb867e6a2692314fcdd728799137c14b4b6dd6681aae3fe566c241b
- PQ-1 Mint Singleton NFT & Lock:
- Blocks
#669,944ʝ,946— 8/8 Confirmed Social Recovery, Daily Limit & Atomic Swap Proofs (linked on a-shannon.github.io).
Drop-In Usage
<script src="https://a-shannon.github.io/lib/ergo-testnet-kit.js"></script>v1.1.0 — ergo-testnet-kit.js (Zero-Dep Ergo Testnet + Nautilus EIP-12 Kit)
ergo-testnet-kit.js v1.1.0 — Zero-Dependency Ergo Testnet & Nautilus EIP-12 Browser Kit
Drop into any static page:
<script src=https://a-shannon.github.io/lib/ergo-testnet-kit.js></script>Highlights
- 14/14 Pure-JS Sigma ValueSerializer encoders/decoders + Base58Check P2PK/P2S verified 100% byte-for-byte against official Scala sigma-state 6.0.3 in Node.js CI (TestnetKitParitySpec)
- 1-Click P2S Spend / Sweep / Veto / Claim / Refund EIP-12 Builders (�uildEip12DailyHotSpendTx, �uildEip12DailyColdSweepTx, �uildEip12SocialOwnerTx, �uildEip12PtlcRefundTx, �uildEip12HtlcSpendTx) verified end-to-end against Scala SigmaPropVerifier 6.0.3
- Hard Testnet-only safety guard (
equireTestnet = true) + Explorer/Node REST client + offline JSON export - SHA-256:
5c1d76c472e9a8deb457367f03dd8d9045a5b8fb9ee8e6c76cd0d2f0a4b4caed