Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserIdentity ¶
type UserIdentity struct {
// Mnemonic words of Private Key
Mnemonic string `json:"mnemonic"`
// ThreebotID generated by explorer
ThreebotID uint64 `json:"threebotid"`
// contains filtered or unexported fields
}
UserIdentity defines serializable struct to identify a user
func NewUserIdentity ¶
func NewUserIdentity(key identity.KeyPair, threebotid uint64) *UserIdentity
NewUserIdentity create a new UserIdentity from existing key
func (*UserIdentity) FromMnemonic ¶
func (u *UserIdentity) FromMnemonic(mnemonic string) error
FromMnemonic initialize the Key (KeyPair) from mnemonic argument
func (*UserIdentity) Identity ¶
func (u *UserIdentity) Identity() string
Identity implements the Identifier interface
func (*UserIdentity) Key ¶
func (u *UserIdentity) Key() identity.KeyPair
Key returns the internal KeyPair
func (*UserIdentity) Load ¶
func (u *UserIdentity) Load(path string) error
Load fetch a seed file and initialize key based on mnemonic
func (*UserIdentity) PrivateKey ¶
func (u *UserIdentity) PrivateKey() ed25519.PrivateKey
PrivateKey implements the client.Identity interface
func (*UserIdentity) Save ¶
func (u *UserIdentity) Save(path string) error
Save dumps UserIdentity into a versioned file
Directories
¶
| Path | Synopsis |
|---|---|
|
cmds
|
|
|
stellar
command
|
|
|
tfexplorer
command
|
|
|
tffarmer
command
|
|
|
tfuser
command
|
|
|
migrations
|
|
|
container_missing_fields
command
|
|
|
fix_reverse_proxy_field
command
|
|
|
fix_workload_migration
command
|
|
|
migration
command
|
|
|
remove_signature
command
|
|
|
user_ipaddresss
command
|
|
|
wallet_address
command
|
|
|
pkg
|
|
|
gridnetworks
Package gridnetworks is a separate package to avoid import cycles due to a wild global config
|
Package gridnetworks is a separate package to avoid import cycles due to a wild global config |
Click to show internal directories.
Click to hide internal directories.