Skip to content

Commit

Permalink
Merge pull request #89 from KomodoPlatform/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
gcharang authored Aug 28, 2023
2 parents 4be1728 + 790761a commit 8ead82f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
12 changes: 10 additions & 2 deletions src/data/sidebar.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,16 @@
"title": "Message Signing",
"links": [
{
"title": "Signing and verifying messages",
"title": "Configuring supported coins",
"href": "/atomicdex/api/v20/message_signing/"
},
{
"title": "Signing a message",
"href": "/atomicdex/api/v20/message_signing/#message-signing"
},
{
"title": "Verifying a signed message",
"href": "/atomicdex/api/v20/message_signing/#message-verification"
}
]
},
Expand Down Expand Up @@ -1153,4 +1161,4 @@
}
]
}
}
}
2 changes: 1 addition & 1 deletion src/pages/atomicdex/api/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Below is a table of the currently available legacy, v2.0 and v2.0 (Dev) methods:
| [get_gossip_mesh](/atomicdex/api/legacy/get_gossip_mesh#get_gossip_mesh) | | |
| [get_gossip_peer_topics](/atomicdex/api/legacy/get_gossip_peer_topics#get_gossip_peer_topics) | | |
| | | [get_locked_amount](/atomicdex/api/v20-dev/get_locked_amount#get_locked_amount) |
| [get_my_peer_id](/atomicdex/api/legacy/get_my_peer_id#get_my_peer_id) | | |
| [get_my_peer_id](/atomicdex/api/legacy/get_gossip_topic_peers#get_my_peer_id) | | |
| | | [get_new_address](/atomicdex/api/v20-dev/hd_address_management#get_new_address) |
| [get_peers_info](/atomicdex/api/legacy/get_peers_info#get_peers_info) | | |
| | [get_public_key](/atomicdex/api/v20/get_public_key#get_public_key) | |
Expand Down
2 changes: 1 addition & 1 deletion src/pages/atomicdex/api/legacy/coin_activation/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ If mm2 is not set in either the command or your `coins` file, you will see the f

</CollapsibleSection>

For enabling Z coins, refer to the [Z coin tasks](/atomicdex/api/v20-dev/enable_z_coin.html) in the v2.0 Dev API.
For enabling Z coins, refer to the [Z coin tasks](/atomicdex/api/v20-dev/zhtlc_coins/#task-enable-z-coin-init) in the v2.0 Dev API.

To see more examples for other platforms like Fantom, Avalanche & Harmony, you can search the [AtomicDEX API Coin Activation Commands List
](http://stats.kmd.io/atomicdex/activation_commands/) or build a single `batch` command to enable a set of selected coins via the
Expand Down
10 changes: 7 additions & 3 deletions src/pages/atomicdex/api/v20/message_signing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export const description = "The methods in this document allow you to sign and v
# Signing_and_Verifying_Messages

Cryptographically signed messages are a useful feature which can be used to [prove ownership of an address](https://www.coindesk.com/policy/2020/05/25/craig-wright-called-fraud-in-message-signed-with-bitcoin-addresses-he-claims-to-own/).
If your [`coins`](https://github.com/KomodoPlatform/coins) file contains the correct [message prefix](https://bitcoin.stackexchange.com/questions/77324/how-are-bitcoin-signed-messages-generated/77325#77325) definitions for a coin, you can sign messages with the AtomicDEX-API(https://github.com/KomodoPlatform/atomicDEX-API). This can generally be found [within a coin's github repository](https://github.com/KomodoPlatform/komodo/blob/master/src/main.cpp#L146) and is assigned via the `sign_message_prefix` value as below.

If your [`coins`](https://github.com/KomodoPlatform/coins) file contains the correct [`sign_message_prefix`](https://bitcoin.stackexchange.com/questions/77324/how-are-bitcoin-signed-messages-generated/77325#77325) parameter value for a coin, you can sign messages with the [AtomicDEX API](https://github.com/KomodoPlatform/atomicDEX-API).


```json
{
Expand Down Expand Up @@ -46,8 +48,9 @@ If your [`coins`](https://github.com/KomodoPlatform/coins) file contains the cor
"method": "sign_message",
"mmrpc": "2.0",
"id": 0,
"userpass": "testpsw",
"params": {
"coin": "KMD",
"coin": "DOC",
"message": "Between subtle shading and the absence of light lies the nuance illusion"
}
}
Expand Down Expand Up @@ -100,8 +103,9 @@ If your [`coins`](https://github.com/KomodoPlatform/coins) file contains the cor
"method": "verify_message",
"mmrpc": "2.0",
"id": 0,
"userpass": "testpsw",
"params": {
"coin": "KMD",
"coin": "DOC",
"message": "Between subtle shading and the absence of light lies the nuance illusion",
"signature": "H43eTmJxBKEPiHkrCe/8NsRidkKCIkXDxLyp30Ez/RwoApGdg89Hlvj9mTMSPGp8om5297zvdL8EVx3IdIe2swY=",
"address": "RUYJYSTuCKm9gouWzQN1LirHFEYThwzA2d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import qtum from "@/images/api-images/qtum.png";

Before a coin can be listed in AtomicDEX, it needs to be confirmed for compatibility, and present within the [Komodo Platform coins repository](https://github.com/KomodoPlatform/coins).

The information below details the requirements for creating a working coins configuration file and submitting a successful pull request to the [coins repository](https://github.com/KomodoPlatform/coins/tree/readme-update). Please contact our support team in the `#dev-support` channel on the [Komodo Platorm Discord](https://komodoplatform.com/discord) if you have any questions or need assistance with performing a [test swap](https://github.com/KomodoPlatform/coins/tree/master/swaps).
The information below details the requirements for creating a working coins configuration file and submitting a successful pull request to the [coins repository](https://github.com/KomodoPlatform/coins/#readme). Please contact our support team in the `#dev-support` channel on the [Komodo Platorm Discord](https://komodoplatform.com/discord) if you have any questions or need assistance with performing a [test swap](https://github.com/KomodoPlatform/coins/tree/master/swaps).


## 1. Coins JSON config (required)
Expand Down

0 comments on commit 8ead82f

Please sign in to comment.