ResetLocalKeyStore FOR UNIT TEST, DO NOT USE IT.
()
| 66 | |
| 67 | // ResetLocalKeyStore FOR UNIT TEST, DO NOT USE IT. |
| 68 | func ResetLocalKeyStore() { |
| 69 | localKey = &LocalKeyStore{ |
| 70 | isSet: false, |
| 71 | private: nil, |
| 72 | public: nil, |
| 73 | nodeID: nil, |
| 74 | nodeNonce: nil, |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | // SetLocalKeyPair sets private and public key, this is a one time thing. |
| 79 | func SetLocalKeyPair(private *asymmetric.PrivateKey, public *asymmetric.PublicKey) { |
no outgoing calls