Ixian SDK
IXICore.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 ()
 
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 17 of file WalletStorage.cs.

Constructor & Destructor Documentation

◆ WalletStorage()

IXICore.WalletStorage.WalletStorage ( string  file_name)

Definition at line 36 of file WalletStorage.cs.

Member Function Documentation

◆ backup()

bool IXICore.WalletStorage.backup ( )

Definition at line 694 of file WalletStorage.cs.

◆ convertWalletFromIxiHex()

void IXICore.WalletStorage.convertWalletFromIxiHex ( )

Definition at line 623 of file WalletStorage.cs.

◆ deleteWallet()

bool IXICore.WalletStorage.deleteWallet ( )

Definition at line 843 of file WalletStorage.cs.

◆ extractMyAddressesFromAddressList()

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

Definition at line 309 of file WalletStorage.cs.

◆ generateFromList()

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

Definition at line 367 of file WalletStorage.cs.

◆ generateFromListFromAddress()

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

Definition at line 345 of file WalletStorage.cs.

◆ generateNewAddress()

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

Definition at line 99 of file WalletStorage.cs.

◆ generateNewAddress_v0()

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

Definition at line 120 of file WalletStorage.cs.

◆ generateNewAddress_v1()

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

Definition at line 162 of file WalletStorage.cs.

◆ generateNewKeyPair()

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

Definition at line 204 of file WalletStorage.cs.

◆ generateWallet()

bool IXICore.WalletStorage.generateWallet ( string  password)

Definition at line 855 of file WalletStorage.cs.

◆ getAddress()

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

Definition at line 285 of file WalletStorage.cs.

◆ getFileName()

string IXICore.WalletStorage.getFileName ( )

Definition at line 72 of file WalletStorage.cs.

◆ getKeyPair()

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

Definition at line 273 of file WalletStorage.cs.

◆ getLastAddress()

byte [] IXICore.WalletStorage.getLastAddress ( )

Definition at line 56 of file WalletStorage.cs.

◆ getMyAddresses()

List<Address> IXICore.WalletStorage.getMyAddresses ( )

Definition at line 329 of file WalletStorage.cs.

◆ getMyAddressesBase58()

List<string> IXICore.WalletStorage.getMyAddressesBase58 ( )

Definition at line 337 of file WalletStorage.cs.

◆ getMyTotalBalance()

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

Definition at line 77 of file WalletStorage.cs.

◆ getNonceFromAddress()

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

Definition at line 441 of file WalletStorage.cs.

◆ getPrimaryAddress()

byte [] IXICore.WalletStorage.getPrimaryAddress ( )

Definition at line 41 of file WalletStorage.cs.

◆ getPrimaryPrivateKey()

byte [] IXICore.WalletStorage.getPrimaryPrivateKey ( )

Definition at line 46 of file WalletStorage.cs.

◆ getPrimaryPublicKey()

byte [] IXICore.WalletStorage.getPrimaryPublicKey ( )

Definition at line 51 of file WalletStorage.cs.

◆ getRawWallet()

byte [] IXICore.WalletStorage.getRawWallet ( )

Definition at line 939 of file WalletStorage.cs.

◆ getSeedHash()

byte [] IXICore.WalletStorage.getSeedHash ( )

Definition at line 66 of file WalletStorage.cs.

◆ isMyAddress()

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

Definition at line 297 of file WalletStorage.cs.

◆ readWallet()

bool IXICore.WalletStorage.readWallet ( string  password)

Definition at line 635 of file WalletStorage.cs.

◆ readWallet_v1()

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

Definition at line 455 of file WalletStorage.cs.

◆ readWallet_v3()

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

Definition at line 525 of file WalletStorage.cs.

◆ scanForLostAddresses()

void IXICore.WalletStorage.scanForLostAddresses ( )

Definition at line 911 of file WalletStorage.cs.

◆ walletExists()

bool IXICore.WalletStorage.walletExists ( )

Definition at line 614 of file WalletStorage.cs.

◆ writeWallet()

bool IXICore.WalletStorage.writeWallet ( string  password)

Definition at line 707 of file WalletStorage.cs.

◆ writeWallet_v1()

bool IXICore.WalletStorage.writeWallet_v1 ( string  password)
protected

Definition at line 722 of file WalletStorage.cs.

◆ writeWallet_v3()

bool IXICore.WalletStorage.writeWallet_v3 ( string  password)
protected

Definition at line 774 of file WalletStorage.cs.

Member Data Documentation

◆ address

byte [] IXICore.WalletStorage.address = null
protected

Definition at line 33 of file WalletStorage.cs.

◆ derivedMasterSeed

byte [] IXICore.WalletStorage.derivedMasterSeed = null
protected

Definition at line 26 of file WalletStorage.cs.

◆ filename

string IXICore.WalletStorage.filename
protected

Definition at line 19 of file WalletStorage.cs.

◆ lastAddress

byte [] IXICore.WalletStorage.lastAddress = null
protected

Definition at line 34 of file WalletStorage.cs.

◆ masterSeed

byte [] IXICore.WalletStorage.masterSeed = null
protected

Definition at line 25 of file WalletStorage.cs.

◆ myAddresses

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

Definition at line 29 of file WalletStorage.cs.

◆ myKeys

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

Definition at line 28 of file WalletStorage.cs.

◆ privateKey

byte [] IXICore.WalletStorage.privateKey = null
protected

Definition at line 31 of file WalletStorage.cs.

◆ publicKey

byte [] IXICore.WalletStorage.publicKey = null
protected

Definition at line 32 of file WalletStorage.cs.

◆ seedHash

byte [] IXICore.WalletStorage.seedHash = null
protected

Definition at line 24 of file WalletStorage.cs.

◆ walletPassword

string IXICore.WalletStorage.walletPassword = ""
protected

Definition at line 22 of file WalletStorage.cs.

◆ walletVersion

int IXICore.WalletStorage.walletVersion = 0
protected

Definition at line 21 of file WalletStorage.cs.


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