Skip to content

Latest commit

 

History

History
91 lines (68 loc) · 4.24 KB

BEP10.md

File metadata and controls

91 lines (68 loc) · 4.24 KB

BEP-10: Registered Types for Transaction Source

1. Summary

This BEP describes how to have a better understanding of the origin of a transaction with a special field in a transaction for recording its source.

2. Abstract

By adding a field in each transaction message, the origin of any transaction could be tracked.

3. Status

This BEP is already implemented.

4. Motivation

BNB Beacon Chain is designed to connect with multiple service providers, such as different wallet providers and trading platforms. By adding an optional field in each transaction message, the origin of any transaction could be tracked. This proposal does not want to deal with assigning the values for various source types. The different sources will claim different value and such a proposition will be assigned afterwards.

5. Specification

5.1 Transaction Data Structure

The transaction is a standard way to wrap a message with signatures.

Field Type Description
Msgs message transaction message
Sig signature signatures from the account holder
Memo string some notes come with the transaction
Source int64 where does this transaction come from
Data byte[] transaction data

5.2 Register Process

  • Service Provider choose their own source identifier
  • They have to create a PR to BEP-10 and add their identifier code in the form under section 5.3
  • Maintainer review their PR
  • If the PR gets accepted, this new identifier will be recognized

5.3 Registered Source types

These are the registered source types.

All of these constant values shall be considered hardcoded in client implementations.

Identifier Source Description
0 Default source value, e.g. for BNB Beacon Chain Command Line, or SDKs
1 BNB Beacon Chain DEX Web Wallet
2 Trust Wallet
3 CanWork.io Decentralised Serviceplace App
4 CanYaDAO Decentralised Autonomous Organisation
5 Math Wallet
6 SafePal Secure, simple, powerful hardware wallet for the masses
7 GoBNB GoBNB Payments App
8 Magnum Wallet
9 Atomic Wallet
10 Equal Wallet
11 Infinito Wallet
12 Coinomi
18 MEET.ONE Blockchain Wallet Supports BNB Beacon Chain DEX
21 Vision - Portfolio & Multi-Chain Wallet
68 Trubi Wallet
82 Cosmostation Wallet
91 Frontier
711 CoolWallet S
714 Binance
777 Guarda Wallet Multi-currency, custody-free wallet
888 TrustToken: Cross-chain, multi-currency fiat onramp+offramp
999 TokenPocket Wallet
1014 Binance OCBS service
1035 Trubi Token Swap service
2048 BNB Browser: Metamask like wallet for BNB
800,000,000 ~ 1,600,000,000 reserved source code

6. License

The content is licensed under CC0.