25 lines
1.0 KiB
Go
25 lines
1.0 KiB
Go
|
package peers
|
||
|
|
||
|
import (
|
||
|
"crypto/ecdsa"
|
||
|
|
||
|
"github.com/status-im/status-go/server"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
// pk Yes this is an actual ECDSA **private** key committed to a public repository visible to anyone.
|
||
|
// DO NOT use this key for anything other than signing udp "hellos". The key's value is in giving other Status
|
||
|
// installations CONFIDENCE, NOT proof, that the sender of the UDP pings is another Status device.
|
||
|
// We do not rely on UDP message information to orchestrate connections or swap secrets. The use case is purely
|
||
|
// to make preflight checks which ADVISE the application and the user.
|
||
|
//
|
||
|
// A signature is more robust and flexible than an application identifier, and serves the same role as an ID, while
|
||
|
// securing the payload against tampering.
|
||
|
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}
|
||
|
k = &ecdsa.PrivateKey{}
|
||
|
)
|
||
|
|
||
|
func init() {
|
||
|
k = server.ToECDSA(pk)
|
||
|
}
|