Skip to content

Releases

robonomics-interface 3.1.0

Choose a tag to compare

@Vourhey Vourhey released this 28 Oct 19:48
58a8abc

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]'

Added

  • The [sr25519] extra (py-sr25519-bindings, rbcl; wheels for musl and aarch64,
    no compiler), imported lazily: without it, an sr25519 key raises an ImportError
    that names the extra.
  • SR25519 next to ED25519, Keypair.crypto_type, and a keyword-only
    crypto_type= (the constant or "sr25519") on from_seed, from_mnemonic,
    from_uri, from_secret, from_public_key and from_address. Addresses, derivation
    paths (//, /, ///password) and signatures match substrate-interface and
    polkadot.js. The default stays ED25519.
  • Extrinsics signed with sr25519 keys; the MultiSignature variant comes from the key.
  • Keypair.encrypt_message / decrypt_message for 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 a DecryptionError; 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 raises RecipientError, and opening with a key of the
    wrong type raises PayloadError that 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-alpine on 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] in python:3.13-alpine on aarch64 and x86_64
    without a compiler, and runs the core without the extra.

robonomics-interface 3.0.0

Choose a tag to compare

@Vourhey Vourhey released this 27 Oct 08:45
51b9287

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.

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_health ping. Dropping it ended every subscription on the shared connection,
    so one slow read (query_map on a Raspberry Pi, say) turned a pending
    author_submitAndWatchExtrinsic into ExtrinsicOutcomeUnknown. A timeout on a live
    node is raised as RequestTimeout and 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 from main.

Changed

  • Checked against the Robonomics runtime spec_version 52 on 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

Choose a tag to compare

@github-actions github-actions released this 25 Oct 12:05
4c1c6c1
Merge pull request #88 from airalab/development

2.0 new default ws endpoint

robonomics-interface 1.6.3

Choose a tag to compare

@github-actions github-actions released this 16 Jul 14:37
b938df1
Merge pull request #87 from airalab/development

Development

robonomics-interface 1.6.2

Choose a tag to compare

@github-actions github-actions released this 01 Feb 14:31
return full days +1 in days_left RWS

robonomics-interface 1.6.1

Choose a tag to compare

@github-actions github-actions released this 07 Feb 10:43
e280188
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

Choose a tag to compare

@github-actions github-actions released this 18 Jan 15:21
7da9e85
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

Choose a tag to compare

@github-actions github-actions released this 28 Dec 22:25
e79df70
Merge pull request #82 from Multi-Agent-io/development

1.5.0 ipfs upload, get, we3_gw auth

robonomics-interface 1.4.0

Choose a tag to compare

@github-actions github-actions released this 26 Dec 18:56
5474c6d

⚠️ 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

Choose a tag to compare

@github-actions github-actions released this 18 Oct 14:53
5154e05
Merge pull request #79 from Multi-Agent-io/development

1.3.6 DT not hash encoded IPFS CIDs, subscriptions docstring update