WebDollar2 is a fork of PandoraPay in go
The main design pattern that has been taken in consideration is to be dead-simple. A source code that is simple is bug free and easy to be developed and improved over time.
Under development. Not working right now.
- Removing Zether
- Integration of ED25519
- Integration of BIP32 for ED25519
- Using PublicKeyHashes instead of PublicKeys
- Removing Address (stakable, spendPublicKey, registration)
- Creating Testnet Genesis
- DPOS contracts
- DPOS consensus
- Staking
- WebDollar Address Format
- Multi Transfer
- Web Wallet
- Simple GUI
- CLI commands
- ECDSA
- Private Key
- Public Address (amount and paymentID)
- HD Wallet
- Commit/Rollback Database
- Wallet
- Menomic Seed
- Save and Load
- Print Wallet Simple Balances
- Print Wallet Homomorphic Balances
- Export Address JSON
- Import Address JSON
- Wallet Encryption
- Merkle Tree
- Block
- Serialization
- Deserialization
- Hashing
- Kernel Hash
- Forger signing
- Blockchain
- Saving state
- Locking mechanism
- Difficulty Adjustment
- Timestamp maximum drift
- Forging
- Forging with wallets Multithreading
- Forging with staked accounts
- Accepting to stakes from network
- Balances
- Balance and Nonce Update
- Patricia Trie ? **
- Assets
- Asset
- Creation
- Increase Supply
- Decrease Supply
- Transactions
- Transaction Wizard
- Transaction Builder
- Fee calculator
- Multi Threading signature verification
- Simple Transactions
- Fee calculator
- Mem Pool
- Saving/Loading **
- Inserting Txs
- Sorting by fee per byte
- Network propagation
- Network
- HTTP server
- HTTP websocket server
- HTTP websocket client
- TOR Integration
- P2P network
- API
- API blockchain explorers
- API wallets
- Consensus
- API websockets for Forks
- Fork manager and downloader
- Webassembly build
- GUI
- Store
- Websockets
- Network
- Wallet
- Node.js and Javascript wallet
- Signing transactions
- Documentation **
- Explorer
** later on optimizations and improvements
The initial version of the consensus was DPOS, but it required all delegated accounts to have the balances public and known. Later, we switched the consensus from DPOS to a novel consensus we designed named UPPOS (Unspendable Private Proof of Stake), which is a proof of stake consensus with confidential amounts and ring signatures.
The block forger will prove that he has owns coins >= value B (with B being public) that solves the staking
equation. Hash( PrevBlockKernelHash + StakingNonce + Timestamp) / B <= Target
where B
is the balance and could be between (0..Account Balance]. By B
we understand the minimum value that
satisfies the above equation. StakingNonce is unique per address for each new block.
For cold staking or even more security, the private key of the account can be "shared" with a delegator full node. Thus, the node will generate the special zether transactions that prove that the shared account has a balance >= B. To avoid the delegator steal the coins, accounts will need to have a special SpendPublicKey attached. Only the real owner of the account will know the private key of this SpendKey allowing only him to move the coins out his account. The only disadvantage is that when a SpendKey is attached, and a user transfer his coins, it is quite fairly guessable that he is the sender from the sender ring. A third party online service provider that behaves like a Two Factor Authenticator (even multisig) could be later hosted by the community members and the SpendPublicKey could be the same and used by multiple people. Having multiple addresses having the same SpendPublicKey will allow this way the Private Unspendable Accounts.
The main reasons why UPPOS has been chosen over POS:
- Sharing your stake to a third party node increases security as your wallet can be secured with a cold spend private key.
- Sharing your stake to someone to stake increases the privacy as you don't need to be online for staking.
- Completely offline can be done to increase the security.
- Griding technique and short range attack vector attack is solved using rollover window for staked accounts requiring them to get into a pending queue.
- state trie proofs to prove to light clients the state.
- creating macro blocks by selecting specific nodes for a meta chain. This allows light consensus.
- scalability. There will be research done to understand the best way to scale up the technology.
This source code is released for research purposes only, with the intent of researching and studying a decentralized p2p network protocol.
PANDORAPAY IS AN OPEN SOURCE COMMUNITY DRIVEN RESEARCH PROJECT. THIS IS RESEARCH CODE PROVIDED TO YOU "AS IS" WITH NO WARRANTIES OF CORRECTNESS. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES. USE AT YOUR OWN RISK.
You may not use this source code for any illegal or unethical purpose; including activities which would give rise to criminal or civil liability.
Under no event shall the Licensor be responsible for the activities, or any misdeeds, conducted by the Licensee.