Skip to content

A network for good

Agapao is a network whose currency, AGAPE, gives as it runs. Every validator chooses how much of the new currency in its blocks to give, and where, and the people who stake AGAPE choose the validators.

Otherwise it works as digital money should: yours to control, final in seconds, and private when you choose.

A payment being filled in on an Android phone: the address it comes from with its balance, the recipient and the amount.

Devnet Agapao runs today as a public test network. Its coins have no value, it can be reset at any time, and there's no mainnet yet.

How giving works

Every validator chooses how much of what it earns to give, and where

Delegators choose validators. Where a destination belongs to an organisation, its domain proves it. The ledger runs the giving in the same code that moves every payment, in four steps.

  1. Validators set aside a share

    Every block creates new AGAPE. The validator that proposed it sets aside its chosen percentage of that, anywhere from 0 to 100, before its commission and its delegators' part.

  2. Each names where its share goes

    A validator names a contract as its giving destination: a group fund, an organisation's own contract, or anything else someone has deployed. A validator that names none has its share burned.

  3. The destination claims it

    The share builds up for the contract, which takes it into its balance and pays it on by its own rules, which anyone can read. What it leaves unclaimed for 60 days is burned.

  4. Domains show who is behind an address

    An address can claim an organisation's domain, and the wallet checks that the domain's DNS lists it. Lists that anyone can publish, still to be built, will say which organisations their publishers have checked.

The network doesn't vet who receives. Check the domain, and the lists you trust.

A validator's page in the desktop wallet: 60% of every block reward to neighbourhood-fund (neighbourhood.example, domain verified), what the contract has been routed and has claimed, that all of it went on to toollibrary.example, a verified domain, and what a verified domain does and doesn't mean.

Here a validator gives 60% of the new AGAPE in the blocks it proposes to a fund its operator deployed. The fund claims neighbourhood.example, and the domain's DNS lists the fund's address, so the wallet shows the domain as verified. The fund passes what it claims on to a tool library whose own domain checks out too, so the wallet counts this validator's giving when it sorts validators by philanthropy. A verified domain ties an address to whoever controls the domain. It doesn't say what they do with the money.

Where new AGAPE comes from

Blocks create 21,024,000 AGAPE a year at first, halving about every 2.4 years until it settles at 1,314,000 a year for good. What a validator doesn't give goes to it and the people staked with it.

What's burned

Shares with no destination and shares left unclaimed, the base fee of every transaction, the 500 AGAPE fee every new validator pays, the 1,000 AGAPE fee for creating an asset, and all the stake validators lose as penalties. A penalty that paid someone would give them a reason to cause it.

Anyone can give directly

Anyone can send AGAPE to any address straight from their wallet, from the public balance or the private one. Where the address claims a domain, the wallet checks whether the domain lists it.

All of it is public

Every validator's percentage and destination, and everything each destination has been given, has claimed and has lost to the burn, is on the public ledger, so anyone can check the rules were followed. Your own payments can be private. The giving can't be.

Nobody is in charge of it. There's no foundation, admin key or privileged address in the ledger, and no fund for anyone to allocate. Validators set their own percentages and destinations, delegators choose validators, and anyone can deploy a destination or publish a list.

Who it's for

Everyone here takes part in the same network, and every block it makes gives the share its validator chooses. Anyone can take any of these parts, and one account can take several. None of them needs anyone's permission, only the stake a validator calls for.

Organisations

Give your organisation an address people can check

What you get

An address people can tie to you. Anyone sending to it, or staking with a validator that gives to it, sees "yourname.org, domain verified" in the wallet, which means your DNS lists the address as yours.

Payments from anyone, straight to the address, and the philanthropy share of any validator that names your contract as its giving destination.

What you do

Claim the domain on chain, from an account or from your contract's own code, and publish a DNS record at _agapao.yourname.org that lists the address. For an address in your wallet, Settings writes the record for you to copy.

To receive validators' shares, deploy a contract that claims what accrues to it (or use one someone else wrote) and ask validators to name it. A share nobody claims within 60 days is burned.

To turn AGAPE into local currency, an organisation sells its own AGAPE through a licensed exchange, broker or crypto-donation processor, which handles the identity checks for that sale. That needs AGAPE to be tradeable somewhere the organisation can reach, and with no mainnet yet, it isn't.

  • A verified domain says your DNS lists the address. It says nothing about who you are or how you spend, and the network doesn't check either.
  • Nobody approves an organisation. People who check organisations can say so in lists they publish under their own names.
The same lookup on an Android phone.

How a domain claim works

  1. Claim the domain

    A transaction from the address, or a call from your contract, records the domain it says it belongs to.

  2. List the address in DNS

    A TXT record at _agapao.yourname.org names the address, so only whoever controls the domain can confirm the claim.

  3. Wallets check both

    The wallet reads the claim from the chain and looks the record up in DNS, with the device's own resolver unless Settings says otherwise. It shows the domain as verified only when the record lists the address.

Live on the devnet Domain claims, by accounts and by contracts, and the wallet's check of them in DNS.

Live on the devnet Sending to a domain from the wallet: type example.org, see the addresses it lists that claim it back, and send to one.

List publishers

Vetting is done by whoever publishes a list, under their own name

What you get

Your judgement shown where people give. Beside an address on a list a user follows, the wallet shows "listed by" and your domain.

Your own standards and your own services. You can offer organisations other work (e.g. tax receipts or reporting) on terms you agree with them.

What you do

Check organisations off chain (e.g. their legal registration, that their domain lists the address, sanctions screening), and publish a list naming each address, its domain and your notes, at an HTTPS address, with a link to how you check.

Sign the list with a key you publish in your own domain's DNS, and sign a new version when an entry changes. A list stops showing once it expires, so it's signed again at least every 400 days.

Destinations, domains and lists in detail

  • The wallet ships with no list, and the project doesn't publish one. Anyone can publish a list, and each user chooses which to follow.
  • A list means nothing to the network. It can't move money or stop a payment, and a careless one costs its publisher its reputation.

Live on the devnet The list format, its signature and the key in DNS, and the wallet that checks them. A user adds a list by URL in Settings and sees "listed by" beside each address it includes. No list has been published yet.

Validators and delegators

The people who run the network choose its giving

What you get

A say in how much the network gives, and where. Each validator sets a philanthropy percentage, from 0 to 100, and names a contract as its giving destination. That share of the new AGAPE in every block it proposes goes to the destination, or is burned if it names none.

Rewards for securing the network. Each validator publishes two rates on chain: its philanthropy percentage and its commission. When it proposes a block, the block's new AGAPE is split by formula: the philanthropy percentage goes to its destination, the commission is taken from what's left, and the remainder is shared by everyone staked with the validator, in proportion to their stake. With 40% philanthropy and 5% commission, 100 new AGAPE becomes 40 for the destination (or burned, if it names none), 3 for the validator and 57 shared by stake.

Holders who don't run a node can delegate their stake to a validator, and in choosing one they choose its philanthropy percentage and its destination. The wallet shows both on every validator's row ("20% to Neighbourhood Fund (neighbourhood.example, domain verified)", or "20% burned (no destination)") and lists validators by the share they give first, and delegators claim their share from it.

What you do

Run a node, and register with at least 10,000 AGAPE of your own stake. Every hour, the 100 validators with the most stake form the set that proposes and votes on blocks.

Stay online and sign honestly. Signing two conflicting blocks costs a validator 5% of its stake and its place for good.

Consensus, staking and penalties in detail

  • A validator can lower its rates at any time, but an increase takes 21 days to apply, and so does a move to a new destination, so delegators can move their stake first.
  • A validator with more stake proposes more blocks, so more of the new AGAPE passes through its rates. Staking with a validator that gives a high percentage sends more of it to that validator's destination, and leaves a smaller share for the validator and its delegators.
  • Staking carries risk. A validator that signs two conflicting blocks loses 5% of its stake, its delegators' included, and stake takes 21 days to unbond. Issuance halves about every 2.4 years, so the amount shared falls with it.
The wallet's Stake screen on a desktop: two delegations to validators, the stake in each, and 150 AGAPE unbonding with the date it is released.

Live on the devnet Staking, delegation, the hourly validator set, the 5% cap on any validator's voting power, slashing, and giving destinations.

Savers and givers

Hold your own money, and give from the same wallet

What you get

A wallet for desktop computers and Android phones. Your keys never leave the device, and the wallet is locked with a password or, on Android, with the phone's fingerprint or screen lock.

Two balances. The public one works like a bank statement anyone can read. The private one hides the sender, the recipient and the amount of every payment made inside it, and you decide, payment by payment, which one to use.

What you do

You write down a 24-word recovery phrase once, then send and receive with addresses or QR codes.

Before anything is signed, the wallet shows what's in the transaction, written from the exact bytes it's about to sign. Where a validator's destination or an address in the explorer claims a domain, the wallet checks it in DNS and says what it found.

You can also delegate stake to a validator, and in choosing one you choose how much of its new AGAPE it gives and where. Validators and delegators, above, says how that works and what it risks.

  • A payment is final once its block is decided, about 2 seconds after it goes in.
  • A typical transfer costs about 0.0027 AGAPE in fees at the starting base fee, and about 0.0005 when the network is quiet.
The wallet's Home screen on an Android phone, showing the total, public and private balances, the wallet's public addresses and its recent activity.

Live on the devnet The wallet app, on desktop computers and Android. The Android app is on the releases page.

Not yet Signed desktop builds, and a listing on Google Play. For now the desktop app is built from source.

People doing business

Get paid in seconds, on a network built to give

What you get

Payments that can't be reversed once their block is decided, which happens about every 2 seconds. There's nothing to wait for after that.

Fees that don't grow with the amount. A transaction pays for its size in bytes, so paying a supplier a large sum costs the same as a small one.

What you do

Give a customer an address or a QR code, and keep separate addresses for separate purposes (e.g. one for sales and one for paying suppliers). Each address has its own balance and history.

A shop can also send part of every sale to an organisation's address automatically, with a contract (see Builders).

  • The fee per byte follows demand, from a starting base fee of 0.00001 AGAPE a byte down to a floor of 0.000001. With the wallet's tip, a transfer costs about 0.0027 AGAPE at the start and about 0.0005 at the floor.
  • The base fee is burned. Only the tip goes to the validator that proposed the block.

How a payment arrives

  1. Your customer pays

    They send AGAPE to your address, scanned from a QR code or pasted in.

  2. The next block carries it

    Blocks come about every 2 seconds, so the payment is in one within seconds of being sent.

  3. It's final

    Once validators holding more than two thirds of the stake sign the block, it's decided, and the payment can't be undone.

Live on the devnet Payments, fees and addresses, as described here.

Live on the devnet Other assets on the same ledger, so a business could price and settle in a stablecoin once a regulated issuer offers one.

Builders

Put giving into the rules you write

What you get

Contracts: programs anyone can deploy that hold AGAPE, keep their own records and send AGAPE to any address. They make room for things like a shared giving fund that members pay into, with rules for who can withdraw and how much; escrow that releases a payment when both sides agree; a shop that sends part of every sale to an organisation; or an organisation's own rules for how it spends.

No app to build for your users. Each contract carries a description of its methods, and the wallet turns that into forms, shows what a call will do before it's signed, and decodes the contract's history.

What you do

Write a contract in Rust with the Agapao SDK and deploy it with the command-line tool. Its code can't be changed once deployed, so the rules people read are the rules that run.

To make a giving destination, write a contract that takes what validators' shares have accrued to it (claim_giving) and pays it on by its own rules. It can claim its organisation's domain for its own address, with no key outside the contract.

The contract runtime and its limits

  • A call pays for the work it does, at a gas price that follows demand. At the starting price the smallest calls cost about 0.014 AGAPE.
A counter contract open in the desktop wallet, with nothing written for it: its method's form, what its read-only method returns, and its events, decoded from its own description.

Live on the devnet Contracts, from the first block, including contracts that hold assets and their mint and freeze powers, and that check other chains' proofs.

Not yet In development: a bridge to Ethereum, in a project of its own, built on these proof checks and asset powers.

What works today

Most of Agapao already runs, on a test network

The first list works on the public devnet now. The second is still to come, and none of it has a date.

Live on the devnet

  • Payments between public addresses, final in one block
  • The private balance, on Zcash's Ironwood protocol, used unchanged
  • Staking, delegation, the hourly choice of validators, a cap on any one validator's voting power, and penalties for misbehaving validators
  • Each validator's philanthropy percentage and giving destination, with the share burned when it names none
  • Domain claims, and the wallet's check of them in DNS beside every destination
  • Sending to a domain: type example.org in the wallet, see the addresses it lists that claim it back, and send
  • Vetting lists: signed lists anyone can publish, which a user adds to the wallet by URL. The wallet ships with none, and shows "listed by" and the publisher's domain beside an address a followed list includes
  • Fees that follow demand, with the base fee burned
  • Other assets on the same ledger, such as stablecoins and a community's own tokens, held and sent like AGAPE
  • Contracts, used from the wallet through forms built from each contract's description, which can hold assets and check other chains' proofs
  • The Android wallet app from the releases page, and the desktop app on macOS, Windows and Linux, built from source
  • A faucet that sends devnet coins to anyone who asks

Not yet

Mainnet
Before it: a public test network programme run on many independent machines, and external security audits of the code.
Wallet downloads
Signed builds for desktops, and the Android app on Google Play as well as the releases page.
A bridge to Ethereum
In development, in a project of its own, on the proof checks and asset powers the devnet already runs.

Before you try it

  • There's no undo

    A payment is final once its block is decided, about 2 seconds after you send it. Nobody can reverse it, so check the address before you confirm.

  • Your keys are yours to keep

    The wallet keeps your keys on your device, and your 24-word recovery phrase is the only other way back in. There's no account to reset: lose both, and nobody can get the money back for you.

  • The devnet gets reset

    It's a test network. Its coins have no value, and it can be reset at any time, which wipes every balance on it.

  • Private is a choice you make

    Payments are public unless you make them from your private balance. Moving money into or out of the private balance shows the amount and the public address on the other side.

Try the devnet

Everything marked live runs today, on test coins

The devnet is a test network. Its coins have no value, and it may be reset at any time. A new wallet starts empty: the faucet sends 1,000 devnet AGAPE a day to a public devnet address. A validator's 10,000 AGAPE self-stake is more than the faucet sends; ask in the Matrix room for that.

Get devnet coins

Run a node

agape-node is the node and a command-line wallet. On Linux, this installs the latest release once it has checked the release's signature (it needs cosign 2.6 or later):

curl -sSL https://agapao.network/install.sh | sh

Each release has builds for Linux (x86_64 and ARM64) and Windows, with checksums, signatures and a list of what's built into them. There's no macOS build yet.

Releases on GitLab

Use the wallet app

Each release has the Android app as a universal APK, with its checksum, which installs on Android 9 or later. It isn't on Google Play yet. The desktop app has no downloads yet, and builds from source on macOS, Windows and Linux with Rust's cargo:

git clone https://gitlab.com/friendowment/agapao.git
cd agapao
cargo run --release -p agape-wallet

A new wallet connects to the devnet through https://agapao.network/api, and its Receive screen has a button that asks the faucet for coins.

The Android app on GitLab

Look around the API

The devnet's nodes answer at https://agapao.network/api: balances, blocks, validators, giving destinations, domain claims and burns. The API explorer lists every request and lets you send them from the browser.

Open the API explorer

Follow along

The source and the releases are on GitLab, and the conversation happens on Matrix.