| 142 | } |
| 143 | |
| 144 | h128 SecretStore::importSecret(bytesSec const& _s, string const& _pass) |
| 145 | { |
| 146 | h128 r = h128::random(); |
| 147 | EncryptedKey key{encrypt(_s.ref(), _pass), toUUID(r), KeyPair(Secret(_s)).address()}; |
| 148 | m_cached[r] = _s; |
| 149 | m_keys[r] = move(key); |
| 150 | save(); |
| 151 | return r; |
| 152 | } |
| 153 | |
| 154 | h128 SecretStore::importSecret(bytesConstRef _s, string const& _pass) |
| 155 | { |