Esempio n. 1
0
func friend() error {
	if len(os.Args) < 3 {
		return errors.New("Not enought parameter to find a friend\n Rosae friend usage => rosae friend friend_name")
	}
	him := rosa.SeekByName(os.Args[2])
	if him == nil {
		return errors.New("Friend not found")
	}
	fmt.Println(rosa.StringifyPublicKey(him.PublicKey))
	return nil
}
Esempio n. 2
0
func public() error {
	fmt.Println(rosa.StringifyPublicKey(&_PrivateKey.PublicKey))
	return nil
}