drt_sc_snippets/
test_wallets.rs1use drt_sdk::wallet::Wallet;
2
3fn test_wallet(pem_file_contents: &str) -> Wallet {
4 Wallet::from_pem_file_contents(pem_file_contents.to_string()).unwrap()
5}
6
7pub fn alice() -> Wallet {
9 test_wallet(include_str!("test_wallets/alice.pem"))
10}
11
12pub fn bob() -> Wallet {
14 test_wallet(include_str!("test_wallets/bob.pem"))
15}
16
17pub fn carol() -> Wallet {
19 test_wallet(include_str!("test_wallets/carol.pem"))
20}
21
22pub fn dan() -> Wallet {
24 test_wallet(include_str!("test_wallets/dan.pem"))
25}
26
27pub fn eve() -> Wallet {
29 test_wallet(include_str!("test_wallets/eve.pem"))
30}
31
32pub fn frank() -> Wallet {
34 test_wallet(include_str!("test_wallets/frank.pem"))
35}
36
37pub fn grace() -> Wallet {
39 test_wallet(include_str!("test_wallets/grace.pem"))
40}
41
42pub fn heidi() -> Wallet {
44 test_wallet(include_str!("test_wallets/heidi.pem"))
45}
46
47pub fn ivan() -> Wallet {
49 test_wallet(include_str!("test_wallets/ivan.pem"))
50}
51
52pub fn judy() -> Wallet {
54 test_wallet(include_str!("test_wallets/judy.pem"))
55}
56
57pub fn mallory() -> Wallet {
59 test_wallet(include_str!("test_wallets/mallory.pem"))
60}
61
62pub fn mike() -> Wallet {
64 test_wallet(include_str!("test_wallets/mike.pem"))
65}