()
| 886 | type MU = KUniv<Meta>; |
| 887 | type AU = KUniv<Anon>; |
| 888 | |
| 889 | fn mk_name(s: &str) -> Name { |
| 890 | let mut name = Name::anon(); |
| 891 | for part in s.split('.') { |
| 892 | name = Name::str(name, part.to_string()); |
| 893 | } |
| 894 | name |
| 895 | } |
| 896 | |
| 897 | fn mk_addr(s: &str) -> Address { |
| 898 | Address::hash(s.as_bytes()) |
| 899 | } |
| 900 | |
| 901 | // ---- Constructors & hashing ---- |