Documentation ¶
Index ¶
- func DecryptFromDb(value []byte) ([]byte, error)
- func DecryptWithKey(value []byte, key []byte) ([]byte, error)
- func EncryptForDb(value []byte) ([]byte, error)
- func EncryptWithKey(value []byte, key []byte) ([]byte, error)
- func FundTwitterAddress(utxo memo.UTXO, key wallet.PrivateKey, address wallet.Address, historyNum int, ...) error
- func GenerateEncryptionKeyFromPassword(password string) ([]byte, error)
- func GetProfile(address string, date time.Time, client *graphql.Client) (*graph.Profiles, error)
- func MakePost(wlt Wallet, message string) (chainhash.Hash, error)
- func MakeReply(wallet Wallet, parentHash []byte, message string) (chainhash.Hash, error)
- func SendToTwitterAddress(utxo memo.UTXO, key wallet.PrivateKey, address wallet.Address, errorMsg string) error
- func SetDbEncryptionKey(encryptionKey []byte)
- func SetSalt(newSalt []byte)
- func UpdateName(wlt Wallet, name string) error
- func UpdateProfilePic(wlt Wallet, url string) error
- func UpdateProfileText(wlt Wallet, profile string) error
- func WithdrawAll(utxos []memo.UTXO, key wallet.PrivateKey, address wallet.Address) error
- func WithdrawAmount(utxos []memo.UTXO, key wallet.PrivateKey, address wallet.Address, amount int64) error
- type Address
- type Database
- func (d *Database) GetAddressBalance(addresses []wallet.Addr) (*lib.Balance, error)
- func (d *Database) GetAddressLastUpdate(addresses []wallet.Addr) ([]graph.AddressUpdate, error)
- func (d *Database) GetUtxos(addresses []wallet.Addr) ([]graph.Output, error)
- func (d *Database) SaveTxs(txs []graph.Tx) error
- func (d *Database) SetAddressLastUpdate(addressUpdates []graph.AddressUpdate) error
- type Input
- type InputGetter
- type Output
- type Profile
- type Tx
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptFromDb ¶
func DecryptWithKey ¶
DecryptWithKey see: https://golang.org/pkg/crypto/cipher/#example_NewCFBDecrypter
func EncryptForDb ¶
func EncryptWithKey ¶
EncryptWithKey see: https://golang.org/pkg/crypto/cipher/#example_NewCFBEncrypter
func FundTwitterAddress ¶
func GenerateEncryptionKeyFromPassword ¶
GenerateEncryptionKeyFromPassword see: https://godoc.org/golang.org/x/crypto/scrypt#example-package
func GetProfile ¶
func SendToTwitterAddress ¶
func SetDbEncryptionKey ¶
func SetDbEncryptionKey(encryptionKey []byte)
func UpdateName ¶
func UpdateProfilePic ¶
func UpdateProfileText ¶
func WithdrawAll ¶
func WithdrawAmount ¶
Types ¶
type Database ¶
type Database struct{}
func (*Database) GetAddressBalance ¶
func (*Database) GetAddressLastUpdate ¶
func (*Database) SetAddressLastUpdate ¶
func (d *Database) SetAddressLastUpdate(addressUpdates []graph.AddressUpdate) error
type InputGetter ¶
type InputGetter struct { Address wallet.Address UTXOs []memo.UTXO // contains filtered or unexported fields }
func (*InputGetter) AddChangeUTXO ¶
func (g *InputGetter) AddChangeUTXO(new memo.UTXO)
func (*InputGetter) GetUTXOs ¶
func (g *InputGetter) GetUTXOs(*memo.UTXORequest) ([]memo.UTXO, error)
func (*InputGetter) MarkUTXOsUsed ¶
func (g *InputGetter) MarkUTXOsUsed(used []memo.UTXO)
func (*InputGetter) NewTx ¶
func (g *InputGetter) NewTx()
func (*InputGetter) SetPkHashesToUse ¶
func (g *InputGetter) SetPkHashesToUse([][]byte)
type Wallet ¶
type Wallet struct { Address wallet.Address Key wallet.PrivateKey Getter gen.InputGetter }
Click to show internal directories.
Click to hide internal directories.