Wallet Model for Satoshi Showdown. This model defines the structure and constraints for cryptocurrency wallets associated with users on the platform. It includes critical details such as public addresses, encrypted private keys, wallet types, and balances. The model also tracks associated transaction references, making it a key component in managing financial activities and ensuring secure and efficient cryptocurrency transactions within the platform.
- Source:
Requires
- module:mongoose
Members
(inner, constant) Wallet :WalletModel
Type:
- WalletModel
- Source:
Type Definitions
WalletModel
Wallet model based on the defined schema. Represents a cryptocurrency wallet in the Satoshi Showdown platform, encapsulating all necessary data and functionalities related to wallet management, transaction tracking, and cryptographic security. This model is central to the financial operations and integrity of the platform's cryptocurrency transactions.
Type:
- mongoose.Model.<module:models/Wallet~WalletSchema>
- Source:
WalletSchema
Schema definition for the Wallet model. Specifies the structure, data types, and validation rules for fields associated with a cryptocurrency wallet. The schema includes fields for public address, encrypted private key, wallet type, and balances, along with references to related transaction records. This schema design ensures the secure and organized management of wallet-related data within the platform.
Type:
- Object
Properties:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
publicAddress |
string | Public address of the wallet, unique for each wallet. |
||||||||||||
encryptedPrivateKey |
Object | Encrypted private key details. Properties
|
||||||||||||
walletType |
string | Type of the wallet, e.g., SegWit or Taproot. |
||||||||||||
confirmedBalance |
number | Confirmed balance of the wallet in cryptocurrency units. |
||||||||||||
unconfirmedBalance |
number | Unconfirmed balance of the wallet. |
||||||||||||
transactionRefs |
Array.<mongoose.Schema.Types.ObjectId> | References to transactions associated with the wallet. |
- Source: