github.com/status-im/status-go@v1.1.0/server/pairing/peers/private_key.go (about) 1 package peers 2 3 import ( 4 "crypto/ecdsa" 5 6 "github.com/status-im/status-go/server" 7 ) 8 9 var ( 10 // pk Yes this is an actual ECDSA **private** key committed to a public repository visible to anyone. 11 // DO NOT use this key for anything other than signing udp "hellos". The key's value is in giving other Status 12 // installations CONFIDENCE, NOT proof, that the sender of the UDP pings is another Status device. 13 // We do not rely on UDP message information to orchestrate connections or swap secrets. The use case is purely 14 // to make preflight checks which ADVISE the application and the user. 15 // 16 // A signature is more robust and flexible than an application identifier, and serves the same role as an ID, while 17 // securing the payload against tampering. 18 pk = []byte{0xbf, 0x3b, 0x37, 0x04, 0x30, 0x04, 0x32, 0x15, 0x72, 0xb0, 0x7f, 0x56, 0x72, 0x30, 0xae, 0x5b, 0x41, 0xf4, 0x4b, 0x42, 0x4a, 0xa2, 0x33, 0x53, 0x76, 0xed, 0x7a, 0xb9, 0x2d, 0x40, 0x37, 0x73} 19 k = &ecdsa.PrivateKey{} 20 ) 21 22 func init() { 23 k = server.ToECDSA(pk) 24 }