Ixian SDK
DLT.WalletStorage Class Reference

Public Member Functions

 WalletStorage (string file_name)
 
byte [] getPrimaryAddress ()
 
byte [] getPrimaryPrivateKey ()
 
byte [] getPrimaryPublicKey ()
 
byte [] getLastAddress ()
 
byte [] getSeedHash ()
 
string getFileName ()
 
IxiNumber getMyTotalBalance (byte[] primary_address)
 
Address generateNewAddress (Address key_primary_address, byte[] last_nonce, bool add_to_pool=true, bool write_to_file=true)
 
Address generateNewAddress_v0 (Address key_primary_address, byte[] last_nonce, bool add_to_pool=true)
 
Address generateNewAddress_v1 (Address key_primary_address, byte[] last_nonce, bool add_to_pool=true)
 
IxianKeyPair generateNewKeyPair (bool writeToFile=true)
 
IxianKeyPair getKeyPair (byte[] address)
 
AddressData getAddress (byte[] address)
 
bool isMyAddress (byte[] address)
 
List< byte[]> extractMyAddressesFromAddressList (SortedDictionary< byte[], IxiNumber > address_list)
 
List< AddressgetMyAddresses ()
 
List< string > getMyAddressesBase58 ()
 
SortedDictionary< byte[], IxiNumbergenerateFromListFromAddress (byte[] from_address, IxiNumber total_amount_with_fee, bool full_pubkey=false)
 
SortedDictionary< byte[], IxiNumbergenerateFromList (byte[] primary_address, IxiNumber total_amount_with_fee, List< byte[]> skip_addresses, List< Transaction > pending_transactions)
 
byte [] getNonceFromAddress (byte[] address)
 
bool walletExists ()
 
void convertWalletFromIxiHex ()
 
bool readWallet (string password)
 
bool backup (string destination)
 
bool writeWallet (string password)
 
bool deleteWallet ()
 
bool generateWallet (string password)
 
void scanForLostAddresses ()
 
byte [] getRawWallet ()
 

Protected Member Functions

bool readWallet_v1 (BinaryReader reader, string password)
 
bool readWallet_v3 (BinaryReader reader, string password)
 
bool writeWallet_v1 (string password)
 
bool writeWallet_v3 (string password)
 

Protected Attributes

string filename
 
int walletVersion = 0
 
string walletPassword = ""
 
byte [] seedHash = null
 
byte [] masterSeed = null
 
byte [] derivedMasterSeed = null
 
readonly Dictionary< byte[], IxianKeyPairmyKeys = new Dictionary<byte[], IxianKeyPair>(new IXICore.Utils.ByteArrayComparer())
 
readonly Dictionary< byte[], AddressDatamyAddresses = new Dictionary<byte[], AddressData>(new IXICore.Utils.ByteArrayComparer())
 
byte [] privateKey = null
 
byte [] publicKey = null
 
byte [] address = null
 
byte [] lastAddress = null
 

Detailed Description

Definition at line 19 of file WalletStorage.cs.

Constructor & Destructor Documentation

◆ WalletStorage()

DLT.WalletStorage.WalletStorage ( string  file_name)

Definition at line 38 of file WalletStorage.cs.

Member Function Documentation

◆ backup()

bool DLT.WalletStorage.backup ( string  destination)

Definition at line 698 of file WalletStorage.cs.

◆ convertWalletFromIxiHex()

void DLT.WalletStorage.convertWalletFromIxiHex ( )

Definition at line 625 of file WalletStorage.cs.

◆ deleteWallet()

bool DLT.WalletStorage.deleteWallet ( )

Definition at line 840 of file WalletStorage.cs.

◆ extractMyAddressesFromAddressList()

List<byte[]> DLT.WalletStorage.extractMyAddressesFromAddressList ( SortedDictionary< byte[], IxiNumber address_list)

Definition at line 311 of file WalletStorage.cs.

◆ generateFromList()

SortedDictionary<byte[], IxiNumber> DLT.WalletStorage.generateFromList ( byte []  primary_address,
IxiNumber  total_amount_with_fee,
List< byte[]>  skip_addresses,
List< Transaction pending_transactions 
)

Definition at line 369 of file WalletStorage.cs.

◆ generateFromListFromAddress()

SortedDictionary<byte[], IxiNumber> DLT.WalletStorage.generateFromListFromAddress ( byte []  from_address,
IxiNumber  total_amount_with_fee,
bool  full_pubkey = false 
)

Definition at line 347 of file WalletStorage.cs.

◆ generateNewAddress()

Address DLT.WalletStorage.generateNewAddress ( Address  key_primary_address,
byte []  last_nonce,
bool  add_to_pool = true,
bool  write_to_file = true 
)

Definition at line 101 of file WalletStorage.cs.

◆ generateNewAddress_v0()

Address DLT.WalletStorage.generateNewAddress_v0 ( Address  key_primary_address,
byte []  last_nonce,
bool  add_to_pool = true 
)

Definition at line 122 of file WalletStorage.cs.

◆ generateNewAddress_v1()

Address DLT.WalletStorage.generateNewAddress_v1 ( Address  key_primary_address,
byte []  last_nonce,
bool  add_to_pool = true 
)

Definition at line 164 of file WalletStorage.cs.

◆ generateNewKeyPair()

IxianKeyPair DLT.WalletStorage.generateNewKeyPair ( bool  writeToFile = true)

Definition at line 206 of file WalletStorage.cs.

◆ generateWallet()

bool DLT.WalletStorage.generateWallet ( string  password)

Definition at line 852 of file WalletStorage.cs.

◆ getAddress()

AddressData DLT.WalletStorage.getAddress ( byte []  address)

Definition at line 287 of file WalletStorage.cs.

◆ getFileName()

string DLT.WalletStorage.getFileName ( )

Definition at line 74 of file WalletStorage.cs.

◆ getKeyPair()

IxianKeyPair DLT.WalletStorage.getKeyPair ( byte []  address)

Definition at line 275 of file WalletStorage.cs.

◆ getLastAddress()

byte [] DLT.WalletStorage.getLastAddress ( )

Definition at line 58 of file WalletStorage.cs.

◆ getMyAddresses()

List<Address> DLT.WalletStorage.getMyAddresses ( )

Definition at line 331 of file WalletStorage.cs.

◆ getMyAddressesBase58()

List<string> DLT.WalletStorage.getMyAddressesBase58 ( )

Definition at line 339 of file WalletStorage.cs.

◆ getMyTotalBalance()

IxiNumber DLT.WalletStorage.getMyTotalBalance ( byte []  primary_address)

Definition at line 79 of file WalletStorage.cs.

◆ getNonceFromAddress()

byte [] DLT.WalletStorage.getNonceFromAddress ( byte []  address)

Definition at line 443 of file WalletStorage.cs.

◆ getPrimaryAddress()

byte [] DLT.WalletStorage.getPrimaryAddress ( )

Definition at line 43 of file WalletStorage.cs.

◆ getPrimaryPrivateKey()

byte [] DLT.WalletStorage.getPrimaryPrivateKey ( )

Definition at line 48 of file WalletStorage.cs.

◆ getPrimaryPublicKey()

byte [] DLT.WalletStorage.getPrimaryPublicKey ( )

Definition at line 53 of file WalletStorage.cs.

◆ getRawWallet()

byte [] DLT.WalletStorage.getRawWallet ( )

Definition at line 940 of file WalletStorage.cs.

◆ getSeedHash()

byte [] DLT.WalletStorage.getSeedHash ( )

Definition at line 68 of file WalletStorage.cs.

◆ isMyAddress()

bool DLT.WalletStorage.isMyAddress ( byte []  address)

Definition at line 299 of file WalletStorage.cs.

◆ readWallet()

bool DLT.WalletStorage.readWallet ( string  password)

Definition at line 637 of file WalletStorage.cs.

◆ readWallet_v1()

bool DLT.WalletStorage.readWallet_v1 ( BinaryReader  reader,
string  password 
)
protected

Definition at line 457 of file WalletStorage.cs.

◆ readWallet_v3()

bool DLT.WalletStorage.readWallet_v3 ( BinaryReader  reader,
string  password 
)
protected

Definition at line 527 of file WalletStorage.cs.

◆ scanForLostAddresses()

void DLT.WalletStorage.scanForLostAddresses ( )

Definition at line 912 of file WalletStorage.cs.

◆ walletExists()

bool DLT.WalletStorage.walletExists ( )

Definition at line 616 of file WalletStorage.cs.

◆ writeWallet()

bool DLT.WalletStorage.writeWallet ( string  password)

Definition at line 704 of file WalletStorage.cs.

◆ writeWallet_v1()

bool DLT.WalletStorage.writeWallet_v1 ( string  password)
protected

Definition at line 719 of file WalletStorage.cs.

◆ writeWallet_v3()

bool DLT.WalletStorage.writeWallet_v3 ( string  password)
protected

Definition at line 771 of file WalletStorage.cs.

Member Data Documentation

◆ address

byte [] DLT.WalletStorage.address = null
protected

Definition at line 35 of file WalletStorage.cs.

◆ derivedMasterSeed

byte [] DLT.WalletStorage.derivedMasterSeed = null
protected

Definition at line 28 of file WalletStorage.cs.

◆ filename

string DLT.WalletStorage.filename
protected

Definition at line 21 of file WalletStorage.cs.

◆ lastAddress

byte [] DLT.WalletStorage.lastAddress = null
protected

Definition at line 36 of file WalletStorage.cs.

◆ masterSeed

byte [] DLT.WalletStorage.masterSeed = null
protected

Definition at line 27 of file WalletStorage.cs.

◆ myAddresses

readonly Dictionary<byte[], AddressData> DLT.WalletStorage.myAddresses = new Dictionary<byte[], AddressData>(new IXICore.Utils.ByteArrayComparer())
protected

Definition at line 31 of file WalletStorage.cs.

◆ myKeys

readonly Dictionary<byte[], IxianKeyPair> DLT.WalletStorage.myKeys = new Dictionary<byte[], IxianKeyPair>(new IXICore.Utils.ByteArrayComparer())
protected

Definition at line 30 of file WalletStorage.cs.

◆ privateKey

byte [] DLT.WalletStorage.privateKey = null
protected

Definition at line 33 of file WalletStorage.cs.

◆ publicKey

byte [] DLT.WalletStorage.publicKey = null
protected

Definition at line 34 of file WalletStorage.cs.

◆ seedHash

byte [] DLT.WalletStorage.seedHash = null
protected

Definition at line 26 of file WalletStorage.cs.

◆ walletPassword

string DLT.WalletStorage.walletPassword = ""
protected

Definition at line 24 of file WalletStorage.cs.

◆ walletVersion

int DLT.WalletStorage.walletVersion = 0
protected

Definition at line 23 of file WalletStorage.cs.


The documentation for this class was generated from the following file: