Skip to content

Releases

v0.8.0

Choose a tag to compare

@brozorec brozorec released this 20 Oct 16:58
ddc327e

What's New (summary)

  • Confidential Token (new crate stellar-confidential): SEP-41 tokens with private balances and transfers. Balances are Pedersen commitments on the Grumpkin curve, every operation that consumes private state carries an UltraHonk proof verified cross-contract, and auditors recover amounts through per-transfer ECDH. The crate ships the token, an auditor key registry, a verification key registry, and a compliance extension (freezing, SAC authorized() passthrough, external authorization policy, clawback). Noir circuits with pinned verification keys live in packages/confidential/circuits, and examples/confidential has a compliant token, an allowlist policy, and a factory.
  • Fungible and non-fungible contract types:
    • Compose<(...)> selects the contract type by listing the extensions a token is made of; invalid combinations fail to compile with a diagnostic naming the offending pair
    • total supply tracking is an opt-in TotalSupply extension
    • Capped is a contract type that enforces the cap on every mint path
    • Allowlist and Blocklist can be combined
    • non-fungible Votes works with Enumerable and Consecutive, and Consecutive works with Royalties
  • RWA:
    • seven compliance modules ported from T-REX: country allow, country restrict, initial lockup period, max balance, supply limit, time-windowed transfer limits, and transfer allow, each with an example under examples/rwa/
    • batch operations, muxed address support, and mint pause
    • recovery and identity registry fixes
  • Vault: deposits that mint zero shares and redemptions that return zero assets are rejected; the virtual supply is bounded and reported in max_deposit and max_mint.
  • Smart Accounts: the signed digest binds the smart account address; spending-limit history is capped at the reachable ledger entry limit; new smart account factory example.
  • Contract Utils: Grumpkin curve arithmetic; Wad gains ln, exp, powi and powf; I256 mul_div recovers from phantom overflow.
  • Fee Abstraction: Eager consumes the whole approval and requires a balance-conserving fee token.
  • Error codes are unique across all packages, and each package owns a disjoint range (see Architecture.md).

Breaking Changes

  • Smart Accounts: signers commit to sha256(AuthDigestPreimage { account, signature_payload, context_rule_ids }.to_xdr()), and Delegated signers authorize __check_auth with the preimage struct. Off-chain signing flows must be updated; see the migration guide in packages/accounts/README.md.
  • Total supply: fungible tokens track the total supply only with the TotalSupply extension (RWA, Vault and Capped require it), and the counter moved out of instance storage. Tokens upgraded from v0.7.x must migrate it with migrate_total_supply (see examples/upgradeable/v2).
  • Minting: mint through the selected contract type, <Self as FungibleToken>::ContractType::mint(...). Calling a primitive such as Base::mint directly still compiles but skips the contract type's bookkeeping (supply counter, cap, voting units, enumeration).
  • RWA compliance: the CanTransfer and CanCreate hooks are removed. Transferred, Created and Destroyed both enforce the rule (by panicking) and update module state, and module hooks receive AccountSnapshots.
  • Error codes: most #[contracterror] codes changed. Clients and tests that match on numeric codes must be updated.
  • Non-fungible: get_approved panics with NonExistentToken for a nonexistent token instead of returning None.

Security

  • Smart Accounts: a Delegated signer that is the contract of a context being authorized is rejected with DelegatedSignerIsContextContract, and a smart account can no longer be its own Delegated signer (SelfDelegatedSigner).

What's Changed (detailed)

Read more

v0.7.3

Choose a tag to compare

@brozorec brozorec released this 20 Oct 14:36
252b35f

Security release for stellar-accounts. It fixes GHSA-jpg9-m7w4-c7wc: a Signer::Delegated signer could authorize a smart account without any signature. This happened when the delegated address was the contract requesting the account's authorization, or when delegation looped back to the account (self, mutual, or a chain into a mutual pair). All users of stellar-accounts < 0.7.3 should upgrade and redeploy or upgrade their smart account contracts.

Changes

  • do_check_auth rejects a Delegated(addr) signer when addr is the contract of any context being authorized, via the new public validate_no_delegated_context_contract (SmartAccountError::DelegatedSignerIsContextContract, error #3017).
  • add_context_rule, add_signer and batch_add_signer reject a Delegated signer pointing to the smart account itself, via the new public validate_no_self_delegation (SmartAccountError::SelfDelegatedSigner, error #3018).

Behavior changes

  • A contract listed as a Delegated signer can no longer authorize the account just by calling require_auth() on it. It now fails with #3017. The delegate must authenticate against the operation digest through its own __check_auth.
  • A custom __check_auth that calls authenticate directly, instead of do_check_auth, must call validate_no_delegated_context_contract first.

Notes

  • The check runs in the account that authorizes back, so an account is protected only when the accounts it delegates to are also upgraded.
  • A Delegated signer must not be an account that delegates its authentication back to the smart account (for example through CAP-71 delegate_auth), unless that account authenticates through do_check_auth. See the Security Warning on validate_no_delegated_context_contract.

Full Changelog: v0.7.2...v0.7.3

v0.8.0-rc.3

v0.8.0-rc.3 Pre-release
Pre-release

Choose a tag to compare

@ozgunozerk ozgunozerk released this 16 Jun 14:07
4114bb8

This is a release candidate for the audit purposes.

Warning

This release has not yet been audited, and not ready for use in production.

v0.7.2

Choose a tag to compare

@brozorec brozorec released this 09 Jun 12:04
a9c4216

Bumped soroban_sdk to v26.1.0 that fixed stellar/rs-soroban-sdk#1875 affecting the usage of soroban_sdk::Context in "packages/accounts".

Full Changelog: v0.7.1...v0.7.2

v0.8.0-rc.2

v0.8.0-rc.2 Pre-release
Pre-release

Choose a tag to compare

@ozgunozerk ozgunozerk released this 08 Jun 06:58
1fd1b5f

This is a release candidate for the audit purposes.

Warning

This release has not yet been audited, and not ready for use in production.

v0.8.0-rc.1

v0.8.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@brozorec brozorec released this 02 Jun 11:55
c5632d9

This is a release candidate for the audit purposes.

Warning

This release has not yet been audited, and not ready for use in production.

v0.7.1

Choose a tag to compare

@brozorec brozorec released this 10 Apr 11:21
3f81125

What's Changed

New Contributors

Full Changelog: v0.7.0...v0.7.1

v0.7.0

Choose a tag to compare

@ozgunozerk ozgunozerk released this 03 Apr 13:19
9e8df92

What's New (summary)

  • Governance + Votes (along with Fungible and NonFungible extension support)
  • ZkEmail: DKIM registry
  • Smart Accounts rework
  • RWA related changes:
    • reorganization
    • better interface and separation and guidelines for creating a compliance module
    • rwa examples in examples folder

What's Changed (detailed)

New Contributors

Full Changelog: v0.6.0...v0.7.0

v0.7.0-rc.2

v0.7.0-rc.2 Pre-release
Pre-release

Choose a tag to compare

@brozorec brozorec released this 26 Mar 15:00
64bdebf

This is a release candidate for the audit purposes.

Warning

This release has not yet been audited, and not ready for use in production.

v0.7.0-rc.1

v0.7.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@ozgunozerk ozgunozerk released this 02 Mar 13:42
239a2a7

This is a release candidate for the audit purposes.

Warning

This release has not yet been audited, and not ready for use in production.