Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lolieatapple committed May 16, 2024
1 parent f89595f commit 15d13b3
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 459 deletions.
7 changes: 0 additions & 7 deletions _data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,6 @@
- url: /docs/bitcoin/outbound-revoke/
title: Outbound Bitcoin Revoke

- title: Privacy Transactions
nodes:
- url: /docs/privacy/overview/
title: Overview of Privacy Transactions
- url: /docs/privacy/transaction/
title: Make a Privacy Transaction

- title: Create your first Wanchain application
nodes:
- url: /docs/create-application/introduction/
Expand Down
2 changes: 1 addition & 1 deletion docs/create-application/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ title: Introduction
Since Wanchain runs on the EVM as well its smart to familiarize yourself with the EVM first. There are some pretty good reads on EVM already you could start with:
- https://github.com/ethereum/wiki/wiki/Ethereum-Development-Tutorial

Once you are familiar with the EVM, you should read the [Using WanMask](/create-application/using-wanmask) page to get an idea of how you can create a dApp that interacts with WanMask. If you want to run blockchain interactions from your backend, you should read the information on smartcontracts, privacy transactions and crosschain as well.
Once you are familiar with the EVM, you should read the [Using WanMask](/create-application/using-wanmask) page to get an idea of how you can create a dApp that interacts with WanMask. If you want to run blockchain interactions from your backend, you should read the information on smartcontracts, crosschain as well.

Tutorials
- https://github.com/ethereum/wiki/wiki/Ethereum-Development-Tutorial
Expand Down
2 changes: 1 addition & 1 deletion docs/create-application/using-wanmask.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ One of the fastest ways to start building your own dApp is using WanMask. WanMas

The most important aspect of WanMask is that it allows you to interact with smart contracts which gives you as a Wanchain Developer the opportunity to have them interact with your dApp in their browser without having the burden of loading a complete wallet.

WanMask includes a safe signing process where users are asked to confirm transactions first. It was ported from MetaMask and has the same options that MetaMask has. In the future also privacy transactions and cross-chain functionality will be added to it to further enhance the possibilities you have with your dApp.
WanMask includes a safe signing process where users are asked to confirm transactions first. It was ported from MetaMask and has the same options that MetaMask has. In the future also cross-chain functionality will be added to it to further enhance the possibilities you have with your dApp.

### Getting WanMask

Expand Down
3 changes: 1 addition & 2 deletions docs/difference-between-wanchain-and-ethereum.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ consideration when building Dapps.
To facilitate privacy transactions a new field has been inserted in the transaction format called `Txtype`. This field can currently contain two values:

* 0x01 for normal transactions
* 0x06 for privacy transactions

This change, although quite small, has a big impact on libraries that create transations.

Expand Down Expand Up @@ -142,4 +141,4 @@ The wallet file for Wanchain is different from an Ethereum wallet.
}
```

As you can see above there is another object called `crypto2` as well as a `waddress` entry. The `waddress` is your private address and the `crypto2` object contains the second private key needed to create the one-time addresses associated with the privacy transactions. The wallet is backwards compatible with Ethereum though, so you could use a Wanchain wallet on both Ethereum and Wanchain.
As you can see above there is another object called `crypto2` as well as a `waddress` entry. The `waddress` is your private address and the `crypto2` object contains the second private key needed to create the one-time addresses. The wallet is backwards compatible with Ethereum though, so you could use a Wanchain wallet on both Ethereum and Wanchain.
1 change: 0 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ title: Introduction
- Compile a contract
- Deploy a contract
- Integrate cross chain in a Dapp
- Integrate privacy in a Dapp

## Solidity Experience

Expand Down
69 changes: 0 additions & 69 deletions docs/privacy/overview.md

This file was deleted.

211 changes: 0 additions & 211 deletions docs/privacy/transaction.md

This file was deleted.

14 changes: 0 additions & 14 deletions docs/set-up-wanchain-private-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,3 @@ To let WanWalletGui use your node you need to enable the IPCPATH parameter in th

```# IPCPATH=[fill in your IPC path here to use wanwalletgui with your node]```

### Initializing OTAs

Lastly to make privacy tx work you need to create a few OTAs first. you can use the initializeota script for that.

```js
loadScript("./loadScript/initializeota.js")
```

This will initialize 9 OTAs for each allowed privacy tx value:

```
var tranValues = [ 10, 20, 50, 100, 200, 500, 1000, 5000, 50000 ];
```
Loading

0 comments on commit 15d13b3

Please sign in to comment.