github.com/annchain/OG@v0.0.9/consensus/annsensus_test/prepare_test.go (about) 1 package annsensus_test 2 3 import ( 4 "fmt" 5 "github.com/annchain/OG/account" 6 ) 7 8 func sampleAccounts(count int) []*account.Account { 9 var accounts []*account.Account 10 for i := 0; i < count; i++ { 11 acc := account.NewAccount(fmt.Sprintf("0x0170E6B713CD32904D07A55B3AF5784E0B23EB38589EBF975F0AB89E6F8D786F%02X", i)) 12 fmt.Println(fmt.Sprintf("account address: %s, pubkey: %s, privkey: %s", acc.Address.String(), acc.PublicKey.String(), acc.PrivateKey.String())) 13 accounts = append(accounts, acc) 14 } 15 return accounts 16 }