(id string)
| 57 | } |
| 58 | |
| 59 | func NewNodeFromString(id string) Node { |
| 60 | _, publicKey, _ := asymmetric.GenSecp256k1KeyPair() |
| 61 | return Node{ |
| 62 | ID: NodeID(id), |
| 63 | Addr: "", |
| 64 | PublicKey: publicKey, |
| 65 | Nonce: cpuminer.Uint256{}, |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func TestNew(t *testing.T) { |
| 70 | kms.Unittest = true |
no test coverage detected