-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Platinium
authored and
Platinium
committed
Aug 6, 2024
1 parent
121a549
commit 7862304
Showing
5 changed files
with
73 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# FAQ | ||
|
||
## Do we supply node snapshots for node operators? | ||
|
||
No, you're node should sync up in ~1 day. If it takes significantly longer than that, contact us. | ||
|
||
## Are there any node rewards? | ||
|
||
Not yet. We have plans of doing a proof of burn model were node operators essentially buy credits to produce blocks. Then, when you produce blocks, you'd get a small reward on top of your initial investment. | ||
Note: We are not guaranteeing any specifics at the moment. This is subject to change as we do addition research. | ||
|
||
## When will I be able to deploy my token on VSC? | ||
|
||
We do not have a specific timeline for this. | ||
However, we are currently working on token and wrapping technology internally with HIVE, HBD, and BTC. Once all the kinks are ironed out with that, we will define public token standard(s) and create a reference implementation for each of those standard(s). | ||
|
||
## How do I run a node? | ||
|
||
Checkout [this repository](https://github.com/vsc-eco/vsc-deployment). | ||
|
||
## Why do I see Error: No withdrawals to process? | ||
|
||
This is typically normal, especially when your node is re-indexing. Most blocks don't generate withdrawals from the multisig, at the moment. In fact, at the time of writing, there should only be 1 withdrawal from vaultec, so you should see this message many times in your logs. | ||
|
||
## How do to update a node? | ||
|
||
Firstly, be sure to use the deployment from #4 faqs and then run sudo docker-compose up -d. This will pull the latest VSC node docker image automatically. | ||
|
||
## How to check if a node is up to date? | ||
|
||
`sudo docker-compose exec vsc-node cat .git/refs/heads/main` | ||
|
||
This will show you the commit you are on. | ||
|
||
Then you can compare it the latest commit in the vsc-node [GitHub repo](https://github.com/vsc-eco/vsc-node/commits/main/). | ||
|
||
## How do I migrate from the vsc-node repo to the vsc-deployment repo? | ||
|
||
1) cd ~/vsc-node (or where ever your vsc-node repo is) | ||
2) sudo docker-compose down | ||
3) sudo ./migrate.sh | ||
4) cd ../vsc-deployment (or where ever you set the new repo to be) | ||
5) sudo docker-compose up -d | ||
|
||
## How do I start writing a smart contract on VSC? | ||
|
||
This is our contract template. It should be enough to get started. There is usage and suggestions in [this repo](https://github.com/vsc-eco/contract-template) README. | ||
|
||
Also, [here is a DEX](https://github.com/vsc-eco/dex) that we are working on that tries to use/showcase best practices for writing VSC contracts. | ||
|
||
As for a formal docs site, we don't have that at the moment. | ||
|
||
However, you can checkout the AssemblyScript docs for usage of the smart contract language. It is very similar to TypeScript. Then, everything you need to interface with the VSC chain state is available in the @vsc.eco/sdk npm package. | ||
|
||
If you have any concrete suggestions about what we should include in a formal documentation site, please let us know. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,13 @@ | ||
# Generate wallet | ||
|
||
VSC on its layer 2 supports _ed25519_ compatible wallets. They can be generated in various ways. Below you have the current recommended options. | ||
VSC on its layer 2 supports _ed25519_ compatible wallets. Those are called lite accounts in the context of VSC. They can be generated in various ways. Below you have the current recommended options. | ||
|
||
## Python script | ||
## Official wallet generator | ||
|
||
You can run a python script that generates the public/ private key for you. The prerequisites is the pip module _cryptography_ and a local python installation. | ||
The offical recommended way to generate a lite account is via the wallet generator repository. | ||
|
||
1. install pip package `pip install cryptography` | ||
It is based on NodeJS and is fairly lightweight. | ||
|
||
2. run the script | ||
Clone the repository, install the node modules and run the generator. | ||
|
||
```python | ||
from cryptography.hazmat.primitives.asymmetric import ed25519 | ||
from cryptography.hazmat.primitives import serialization | ||
import binascii | ||
|
||
# Generate a new Ed25519 private key | ||
private_key = ed25519.Ed25519PrivateKey.generate() | ||
|
||
# Get the public key | ||
public_key = private_key.public_key() | ||
|
||
# Get the raw bytes of the private key | ||
private_bytes = private_key.private_bytes( | ||
encoding=serialization.Encoding.Raw, | ||
format=serialization.PrivateFormat.Raw, | ||
encryption_algorithm=serialization.NoEncryption() | ||
) | ||
|
||
# Get the raw bytes of the public key | ||
public_bytes = public_key.public_bytes( | ||
encoding=serialization.Encoding.Raw, | ||
format=serialization.PublicFormat.Raw | ||
) | ||
|
||
# Convert to hexadecimal | ||
private_hex = binascii.hexlify(private_bytes).decode('ascii') | ||
public_hex = binascii.hexlify(public_bytes).decode('ascii') | ||
|
||
print(f"Private key (hex): {private_hex}") | ||
print(f"Public key (hex): {public_hex}") | ||
``` | ||
|
||
3. **store the generated credentials in a save place** | ||
|
||
```bash | ||
[user] vsc > python3 generate_acc.py | ||
Private key (hex): 02df181c21ef23cca914835e990dffee7ba553a3a8f012d0c493621423e36ab7 | ||
Public key (hex): 96a70572868db45828374330e203f8df9fce69aa8456bacf17b06821111daaf9 | ||
``` | ||
Take a look at [the repository here](https://github.com/vsc-eco/wallet-generator). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters