Пример #1
0
func (a Account) MarshalText() ([]byte, error) {
	if len(a) == 0 {
		return nil, nil
	}
	if address, err := crypto.NewRippleAccount(a[:]); err != nil {
		return nil, err
	} else {
		return []byte(address.ToJSON()), nil
	}
}
Пример #2
0
func (r RegularKey) Hash() (crypto.Hash, error) {
	return crypto.NewRippleAccount(r[:])
}
Пример #3
0
func (a Account) Hash() (crypto.Hash, error) {
	return crypto.NewRippleAccount(a[:])
}