Repository navigation
Releases
robonomics-interface 3.1.0
sr25519 accounts next to ED25519, as the optional [sr25519] extra: keys, extrinsic signing, ECIES encryption for the report envelope, and import of a wallet's JSON backup. The 3.0 API only grows; Keypair.from_mnemonic(m) still gives the ED25519 address, and every ED25519 package, signature and extrinsic is what 3.0.0 produced. The core installs and works without the extra.
pip install 'robonomics-interface[sr25519]'- Migration guide, section 9 (sr25519): MIGRATION.md
- Documentation: https://airalab.github.io/robonomics-interface/
- The full list of changes is in the changelog under 3.1.0rc1; 3.1.0 has the code of 3.1.0rc1.
Added
- The
[sr25519]extra (py-sr25519-bindings,rbcl; wheels for musl and aarch64,
no compiler), imported lazily: without it, an sr25519 key raises anImportError
that names the extra. SR25519next toED25519,Keypair.crypto_type, and a keyword-only
crypto_type=(the constant or"sr25519") onfrom_seed,from_mnemonic,
from_uri,from_secret,from_public_keyandfrom_address. Addresses, derivation
paths (//,/,///password) and signatures match substrate-interface and
polkadot.js. The default stays ED25519.- Extrinsics signed with sr25519 keys; the
MultiSignaturevariant comes from the key. Keypair.encrypt_message/decrypt_messagefor sr25519: the ECIES scheme of
py-sr25519-encryption(Ivan Berman) and SubMessage, the same bytes, so blobs open in
both and in polkadot.js. Every failure is aDecryptionError; the MAC is checked
before decrypting. The scheme does not authenticate the sender.- The report envelope for sr25519: the type of a package is the type of the sender's
key; a mixed recipient list raisesRecipientError, and opening with a key of the
wrong type raisesPayloadErrorthat names the mismatch. Keypair.from_json(backup, password): import of a polkadot.js keyring backup
(version 3), ED25519 or sr25519 as the file says. Scrypt parameters are limited to
those polkadot.js accepts.
Changed
- The development-chain tests run for both key types and include an encrypted report
end to end. They still use the runtime v50 wasm (Sudo is needed to set the RWS
oracle); mainnet runs spec 53, where Sudo is gone, OpenGov and CPS v1.1 are in, and
Datalog, RWS, System, Balances and the signed extensions are unchanged. The mainnet
smoke test passes on 53 for both key types. - CI runs the tests with and without the extra, and in
python:3.13-alpineon aarch64
and x86_64 without a compiler.
Checked
- On Polkadot with 3.1.0rc1 installed from PyPI: an sr25519 account wrote two datalog
records, read them back, and an sr25519 integrator opened an encrypted report whose
id it read from the datalog. A report for a recipient of the other key type is refused. - CI installs the wheel with
[sr25519]inpython:3.13-alpineon aarch64 and x86_64
without a compiler, and runs the core without the extra.
robonomics-interface 3.0.0
A rewrite of the library for the current Robonomics runtime. Not compatible with 2.x: no substrate-interface, an asyncio client over WebSocket (plus a blocking RobonomicsSync), ED25519 keys, Polkadot only. 2.x stays available as robonomics-interface<3.
- Migration guide: MIGRATION.md
- Documentation: https://airalab.github.io/robonomics-interface/
- Every feature of the 3.0 line is listed in the changelog under 3.0.0rc1 and 3.0.0rc2.
The release of the 3.0 line; the API is the one of 3.0.0rc2.
Fixed
- A request timeout no longer drops the connection when the node still answers a
system_healthping. Dropping it ended every subscription on the shared connection,
so one slow read (query_mapon a Raspberry Pi, say) turned a pending
author_submitAndWatchExtrinsicintoExtrinsicOutcomeUnknown. A timeout on a live
node is raised asRequestTimeoutand is not retried on another endpoint; a node that
answers neither is dropped and failed over as before.
Added
- The Sphinx documentation is back: API reference built from the docstrings, plus the
README, MIGRATION.md and the changelog, published to GitHub Pages frommain.
Changed
- Checked against the Robonomics runtime
spec_version 52on Polkadot (Sudo removed
from production, OpenGov, CPS v1.1): the metadata, signed extensions, and the
Datalog, RWS, System and Balances pallets are unchanged for this library. The offline
fixtures are recorded from spec 52. The development-chain tests still run on the
runtime v50 wasm, because the production runtime no longer has Sudo.
robonomics-interface 2.0.0
Merge pull request #88 from airalab/development 2.0 new default ws endpoint
robonomics-interface 1.6.3
Merge pull request #87 from airalab/development Development
robonomics-interface 1.6.2
return full days +1 in days_left RWS
robonomics-interface 1.6.1
Merge pull request #84 from Multi-Agent-io/development 1.6.1 added Lifetime subscription support in get_days_left
robonomics-interface 1.6.0
Merge pull request #83 from Multi-Agent-io/development 1.6.0 Removed ipfs_utils, added RWS checks, error messages
robonomics-interface 1.5.0
Merge pull request #82 from Multi-Agent-io/development 1.5.0 ipfs upload, get, we3_gw auth
robonomics-interface 1.4.0
⚠️ There is a Subscriber class logic update
It doesn't block current thread anymore.
More that, Subscriber.cancel() method implemented to cancel active subscription.
robonomics-interface 1.3.6
Merge pull request #79 from Multi-Agent-io/development 1.3.6 DT not hash encoded IPFS CIDs, subscriptions docstring update