Documentation
¶
Index ¶
- Variables
- func AddressInList(a gadk.Address, list []gadk.Address) bool
- func AskConfirm() bool
- func CLImain(passwd []byte, doimport bool, generate bool)
- func Decrypt(key, data []byte) ([]byte, error)
- func DeriveKey(password, salt []byte) ([]byte, []byte, error)
- func Encrypt(key, data []byte) ([]byte, error)
- func Exit()
- func GenerateRandomSEED(n int) (string, error)
- func GenerateSeed()
- func GetIndexForAddress(a gadk.Address) int
- func GetNewAddress() gadk.Address
- func GetPasswd() []byte
- func GetPwdAndStoreSeed()
- func Handle(conf *Conf, w http.ResponseWriter, r *http.Request)
- func ImportSeed(importseed string)
- func LoadSeedAPIUnlock(passwd []byte) bool
- func LoadSeedFromFile(passwd []byte)
- func MakeBackup(filename string)
- func OpenWallet(passwd []byte)
- func Pcheck(err error)
- func ReadAddressesFromFile() (addressBalances map[gadk.Address]int64, ...)
- func ReadFileIntoSlice(fpath string) []string
- func ReadSeedUser() string
- func ScanAddressesForBalanceChanges(scanAdditional int)
- func ScanStoreAddressesAndBalancesINIT(generatedNewSeed bool)
- func SetLog(verbose bool)
- func StoreBalances(addressBalances map[gadk.Address]int64, ...)
- func StoreConfirmedTransactions(addressBalances map[gadk.Address]int64, ...) []gadk.Trytes
- func TransactionScanner()
- func Walletnotify(conf *Conf) ([]string, error)
- type Account
- type Balance
- type Conf
- type Err
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var AddressMap map[gadk.Address]int64
View Source
var AddressMapByIndex map[int]gadk.Address
View Source
var Api gadk.API
View Source
var GlobalAccountName string
View Source
var LastUsedAddressIndex int
View Source
var Password []byte
View Source
var Seed string
View Source
var SeedEncrypted []byte
Functions ¶
func AskConfirm ¶
func AskConfirm() bool
func GenerateRandomSEED ¶
func GenerateSeed ¶
func GenerateSeed()
func GetIndexForAddress ¶
func GetNewAddress ¶
func GetPwdAndStoreSeed ¶
func GetPwdAndStoreSeed()
func Handle ¶
func Handle(conf *Conf, w http.ResponseWriter, r *http.Request)
Handle handles api calls.
func ImportSeed ¶
func ImportSeed(importseed string)
func LoadSeedAPIUnlock ¶
func LoadSeedFromFile ¶
func LoadSeedFromFile(passwd []byte)
func MakeBackup ¶
func MakeBackup(filename string)
func OpenWallet ¶
func OpenWallet(passwd []byte)
func ReadAddressesFromFile ¶
func ReadFileIntoSlice ¶
func ReadSeedUser ¶
func ReadSeedUser() string
func ScanAddressesForBalanceChanges ¶
func ScanAddressesForBalanceChanges(scanAdditional int)
func ScanStoreAddressesAndBalancesINIT ¶
func ScanStoreAddressesAndBalancesINIT(generatedNewSeed bool)
func StoreBalances ¶
func TransactionScanner ¶
func TransactionScanner()
func Walletnotify ¶
Types ¶
type Conf ¶
type Conf struct { RPCUser string RPCPassword string RPCPort string Notify string Node string Testnet bool PassPhrase bool Tag string V2 bool // contains filtered or unexported fields }
Conf is configuration for aidosd.
var Aconf *Conf
Click to show internal directories.
Click to hide internal directories.