示例#1
0
文件: main.go 项目: MrGosti/rosae
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
}
示例#2
0
文件: main.go 项目: MrGosti/rosae
func public() error {
	fmt.Println(rosa.StringifyPublicKey(&_PrivateKey.PublicKey))
	return nil
}