From 28be8dbb31cf2fc2f77dfcb372d620ad2e13a182 Mon Sep 17 00:00:00 2001 From: silverpill Date: Sun, 19 Mar 2023 20:31:34 +0000 Subject: [PATCH] Update Monero configuration guide --- README.md | 19 +++---------------- contrib/monero/wallet.conf | 14 ++++++++++++++ docs/ethereum.md | 7 +++++++ docs/monero.md | 13 +++++++++++++ 4 files changed, 37 insertions(+), 16 deletions(-) create mode 100644 contrib/monero/wallet.conf create mode 100644 docs/ethereum.md create mode 100644 docs/monero.md diff --git a/README.md b/README.md index 9c8b601..65cb77e 100644 --- a/README.md +++ b/README.md @@ -107,23 +107,10 @@ An HTTP server will be needed to handle HTTPS requests. See the example of [ngin See [guide](./docs/onion.md). -### Monero +### Blockchain integrations -Install Monero node or choose a [public one](https://monero.fail/). - -Configure and start [monero-wallet-rpc](https://monerodocs.org/interacting/monero-wallet-rpc-reference/) daemon. Add `disable-rpc-login=1` to your `monero-wallet-rpc` config (currently RPC auth is not supported in Mitra). - -Create a wallet for your instance. - -Add blockchain configuration to `blockchains` array in your configuration file. - -### Ethereum - -Install Ethereum client or choose a JSON-RPC API provider. - -Deploy contracts on the blockchain. Instructions can be found at https://codeberg.org/silverpill/mitra-contracts. - -Add blockchain configuration to `blockchains` array in your configuration file. +- [Monero](./docs/monero.md) +- [Ethereum](./docs/ethereum.md) ## Development diff --git a/contrib/monero/wallet.conf b/contrib/monero/wallet.conf new file mode 100644 index 0000000..afae1e5 --- /dev/null +++ b/contrib/monero/wallet.conf @@ -0,0 +1,14 @@ +# https://monerodocs.org/interacting/monero-wallet-rpc-reference/ + +daemon-address=http://example.tld:18081 + +untrusted-daemon=1 +non-interactive=1 + +rpc-bind-port=18082 +disable-rpc-login=1 + +wallet-dir=/var/lib/monero-wallet/wallet + +log-file=/var/lib/monero-wallet/wallet-rpc.log +log-level=0 diff --git a/docs/ethereum.md b/docs/ethereum.md new file mode 100644 index 0000000..ce66198 --- /dev/null +++ b/docs/ethereum.md @@ -0,0 +1,7 @@ +# Ethereum integration + +Install Ethereum client or choose a JSON-RPC API provider. + +Deploy contracts on the blockchain. Instructions can be found at https://codeberg.org/silverpill/mitra-contracts. + +Add blockchain configuration to `blockchains` array in your configuration file. diff --git a/docs/monero.md b/docs/monero.md new file mode 100644 index 0000000..dbd532b --- /dev/null +++ b/docs/monero.md @@ -0,0 +1,13 @@ +# Monero integration + +Install Monero node or choose a [public one](https://monero.fail/). + +Install and configure [monero-wallet-rpc](https://monerodocs.org/interacting/monero-wallet-rpc-reference/) service. Add `disable-rpc-login=1` to your `monero-wallet-rpc` configuration file (currently RPC auth is not supported in Mitra). See [example](../contrib/monero/wallet.conf). + +Start `monero-wallet-rpc`. Create a wallet for your instance: + +``` +mitractl create-monero-wallet "mitra-wallet" "passw0rd" +``` + +Add blockchain configuration to `blockchains` array in your configuration file.