SetLocalKeyPair sets private and public key, this is a one time thing.
(private *asymmetric.PrivateKey, public *asymmetric.PublicKey)
| 77 | |
| 78 | // SetLocalKeyPair sets private and public key, this is a one time thing. |
| 79 | func SetLocalKeyPair(private *asymmetric.PrivateKey, public *asymmetric.PublicKey) { |
| 80 | localKey.Lock() |
| 81 | defer localKey.Unlock() |
| 82 | if localKey.isSet { |
| 83 | return |
| 84 | } |
| 85 | localKey.isSet = true |
| 86 | localKey.private = private |
| 87 | localKey.public = public |
| 88 | } |
| 89 | |
| 90 | // SetLocalNodeIDNonce sets private and public key, this is a one time thing. |
| 91 | func SetLocalNodeIDNonce(rawNodeID []byte, nonce *mine.Uint256) { |
no outgoing calls