plebble
main Class Reference
Inheritance diagram for main:
Collaboration diagram for main:

Public Member Functions

 main ()
 
void test_datagram_parse (int mode_)
 
void main_test ()
 
- Public Member Functions inherited from us.wallet.cli.hmi
 hmi (PrintStream os)
 
 hmi (String[] args0, PrintStream os)
 
 hmi (params p_, PrintStream os)
 
 hmi (shell_args a, PrintStream os)
 
byte[] from_hex (String s)
 
void store_file (byte[] bytes)
 
void req_file (String hashb58)
 
void store_kv (String k, String v)
 
void rm_kv (String k)
 
void rm_f (String hashb58)
 
ko run ()
 
boolean isup ()
 
pair< ko, cfg1load_cfg (String home, boolean gen)
 
ko start ()
 
ko start (busyled_t.handler_t busyled_handler_send, busyled_t.handler_t busyled_handler_recv, datagram.dispatcher_t dis)
 
void stop ()
 
void join ()
 
void on_connect (ko error)
 
void on_peer_disconnected (final String reason)
 
void verification_completed (boolean ok)
 
void interactive_shell ()
 
KeyPair get_keys ()
 

Static Public Member Functions

static void main (String[] args)
 
- Static Public Member Functions inherited from us.wallet.cli.hmi
static void help (params p, PrintStream os)
 
static void trader_help (boolean interactive, PrintStream os)
 
static boolean test ()
 

Package Functions

void check (String a, String b)
 
void check (hash_t a, hash_t b)
 
void check (sha256.hash_t a, sha256.hash_t b)
 
void check (byte[] a, byte[] b)
 
void check (uint64_t a, uint64_t b)
 
void check (uint32_t a, uint32_t b)
 
void check (uint16_t a, uint16_t b)
 
void check (uint8_t a, uint8_t b)
 
void check (int64_t a, int64_t b)
 
void check (PublicKey a, PublicKey b)
 
void check (PrivateKey a, PrivateKey b)
 
sha256.hash_t create_instance_H ()
 
PrivateKey create_instance_k ()
 
PublicKey create_instance_p ()
 
hash_t create_instance_h ()
 
uint64_t create_instance_u8 ()
 
int64_t create_instance_i8 ()
 
uint16_t create_instance_u2 ()
 
uint32_t create_instance_u4 ()
 
byte[] create_instance_v ()
 
String create_instance_s ()
 
- Package Functions inherited from us.wallet.cli.hmi
void constructor (PrintStream os)
 
String readFile (String path, Charset encoding) throws IOException
 
byte[] readBinFile (String path) throws IOException
 
void tx_help (params p, PrintStream os)
 
ko tx (shell_args args)
 
us.wallet.daemon.api_stream create_dapi_stream (us.wallet.daemon.api raw, PrintStream os, params p)
 
us.wallet.wallet.api_stream create_wapi_stream (us.wallet.wallet.api raw, PrintStream os, params p)
 
void trade (boolean interactive)
 
ko run_offline ()
 
ko exec (String cmdline)
 
ko exec (String cmd, shell_args args)
 
ko run_online ()
 
void banner (params p, PrintStream os)
 

Package Attributes

int mode =0
 
Random rand = new Random()
 

Additional Inherited Members

- Public Attributes inherited from us.wallet.cli.hmi
screen scr
 
us.wallet.daemon.api_stream dapi =null
 
us.wallet.wallet.api_stream wapi =null
 
hash_t address
 
boolean advanced =false
 
boolean verbose =false
 
boolean local =false
 
String home
 
String host
 
uint16_t port
 
boolean interactive =false
 
cfg1 cfg =null
 
params p
 
- Static Public Attributes inherited from us.wallet.cli.hmi
static final ko KO_11000 =new ko("KO 11000 Invalid command.")
 
static final ko KO_10020 =new ko("KO 10020 Feature not available in RPC mode.")
 
static final ko KO_10021 =new ko("KO 10021 Feature only available in RPC mode.")
 
static final ko KO_91810 =new ko("KO 91810 Not an offline command.")
 
static final ko KO_40322 =new ko("KO 40322 Not implemented.")
 
static final ko KO_39201 =new ko("KO 39201 already started.")
 

Constructor & Destructor Documentation

◆ main() [1/2]

main.main ( )
inline

Referenced by main().

Here is the caller graph for this function:

◆ main() [2/2]

static void main.main ( String[]  args)
inlinestatic

References main(), and main_test().

Here is the call graph for this function:

Member Function Documentation

◆ check() [1/11]

void main.check ( byte[]  a,
byte[]  b 
)
inlinepackage

◆ check() [2/11]

void main.check ( hash_t  a,
hash_t  b 
)
inlinepackage

References us.gov.crypto.ripemd160.hash_t.equals().

Here is the call graph for this function:

◆ check() [3/11]

void main.check ( int64_t  a,
int64_t  b 
)
inlinepackage

◆ check() [4/11]

void main.check ( PrivateKey  a,
PrivateKey  b 
)
inlinepackage

◆ check() [5/11]

void main.check ( PublicKey  a,
PublicKey  b 
)
inlinepackage

◆ check() [6/11]

void main.check ( sha256.hash_t  a,
sha256.hash_t  b 
)
inlinepackage

◆ check() [7/11]

void main.check ( String  a,
String  b 
)
inlinepackage

Referenced by test_datagram_parse().

Here is the caller graph for this function:

◆ check() [8/11]

void main.check ( uint16_t  a,
uint16_t  b 
)
inlinepackage

◆ check() [9/11]

void main.check ( uint32_t  a,
uint32_t  b 
)
inlinepackage

◆ check() [10/11]

void main.check ( uint64_t  a,
uint64_t  b 
)
inlinepackage

◆ check() [11/11]

void main.check ( uint8_t  a,
uint8_t  b 
)
inlinepackage

◆ create_instance_H()

sha256.hash_t main.create_instance_H ( )
inlinepackage

References us::gov::crypto::sha256.hash(), mode, and rand.

Referenced by test_datagram_parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_instance_h()

hash_t main.create_instance_h ( )
inlinepackage

References us::gov::crypto::ripemd160.hash(), mode, and rand.

Referenced by test_datagram_parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_instance_i8()

int64_t main.create_instance_i8 ( )
inlinepackage

References mode, and rand.

Referenced by test_datagram_parse().

Here is the caller graph for this function:

◆ create_instance_k()

PrivateKey main.create_instance_k ( )
inlinepackage

References us::gov::crypto::ec.generate_keypair(), and us::gov::crypto::ec.instance.

Referenced by test_datagram_parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_instance_p()

PublicKey main.create_instance_p ( )
inlinepackage

References us::gov::crypto::ec.generate_keypair(), and us::gov::crypto::ec.instance.

Referenced by test_datagram_parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ create_instance_s()

String main.create_instance_s ( )
inlinepackage

References mode.

Referenced by test_datagram_parse().

Here is the caller graph for this function:

◆ create_instance_u2()

uint16_t main.create_instance_u2 ( )
inlinepackage

References mode, and rand.

Referenced by test_datagram_parse().

Here is the caller graph for this function:

◆ create_instance_u4()

uint32_t main.create_instance_u4 ( )
inlinepackage

References mode, and rand.

◆ create_instance_u8()

uint64_t main.create_instance_u8 ( )
inlinepackage

References mode, and rand.

Referenced by test_datagram_parse().

Here is the caller graph for this function:

◆ create_instance_v()

byte [] main.create_instance_v ( )
inlinepackage

References mode, and rand.

Referenced by test_datagram_parse().

Here is the caller graph for this function:

◆ main_test()

void main.main_test ( )
inline

◆ test_datagram_parse()

void main.test_datagram_parse ( int  mode_)
inline

References check(), create_instance_H(), create_instance_h(), create_instance_i8(), create_instance_k(), create_instance_p(), create_instance_s(), create_instance_u2(), create_instance_u8(), create_instance_v(), mode, us::gov::socket::datagram.parse_H(), us::gov::socket::datagram.parse_h(), us::gov::socket::datagram.parse_hhi8h(), us::gov::socket::datagram.parse_hi8(), us::gov::socket::datagram.parse_hi8h(), us::gov::socket::datagram.parse_hi8hi8h(), us::gov::socket::datagram.parse_Hpv(), us::gov::socket::datagram.parse_hs(), us::gov::socket::datagram.parse_hsh(), us::gov::socket::datagram.parse_hss(), us::gov::socket::datagram.parse_hsv(), us::gov::socket::datagram.parse_hu2s(), us::gov::socket::datagram.parse_hu2v(), us::gov::socket::datagram.parse_k(), us::gov::socket::datagram.parse_p(), us::gov::socket::datagram.parse_pss(), us::gov::socket::datagram.parse_pv(), us::gov::socket::datagram.parse_s(), us::gov::socket::datagram.parse_sh(), us::gov::socket::datagram.parse_sk(), us::gov::socket::datagram.parse_ss(), us::gov::socket::datagram.parse_sss(), us::gov::socket::datagram.parse_su2hi8(), us::gov::socket::datagram.parse_su2ss(), us::gov::socket::datagram.parse_u2(), us::gov::socket::datagram.parse_u2hs(), us::gov::socket::datagram.parse_u2hv(), us::gov::socket::datagram.parse_u2ss(), us::gov::socket::datagram.parse_u2u2u2k(), us::gov::socket::datagram.parse_u2u2u2s(), us::gov::socket::datagram.parse_u8(), us::gov::socket::datagram.parse_v(), us::gov::socket::datagram.parse_vk(), us::gov::socket::datagram.parse_vkp(), us::gov::socket::datagram.parse_vpk(), us::gov::socket::datagram.parse_vpv(), and us.pair< f, s >.second.

Referenced by main_test().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ mode

◆ rand


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