mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
update public gpg key for signing.
This commit is contained in:
parent
c798759cd4
commit
8f6637b824
@ -11,8 +11,37 @@ import (
|
|||||||
"v2ray.com/core/common"
|
"v2ray.com/core/common"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
var pubkey = []string{`-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
pubkey = `-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
||||||
|
mQENBFx4NlQBCADJyVwRUO/LzcnoHLWKppFQY4aTS+fH8k4Pf5nB3VR41v/3QZm1
|
||||||
|
jBkuO1522KmBkPPuuYDAdOrE8Y8UVLfir5RxnZXF9Ke8SPq0zB+ruOHfv0xJUz8q
|
||||||
|
bcArsdXpDRxtrEbi7J81YOB/yITuY5kSYUA9v1TZWf7eSS6GIw/YF0Eo/gsbbpwQ
|
||||||
|
yon/Ue3xxxbZnWvfsluhPADomNwbJ5iTFeRClJqdACb/YqIEo2M2ttLE3QF2qrrL
|
||||||
|
SbzdTUtr3qjADIEWHoABcQ+Amx0sGnyiTJUGiL+4QwdIOLsh4RLq1MWgN+niw9Cl
|
||||||
|
cUQBPojZmHPPqIjNXr823TpZvkZOxuE9RSDjABEBAAG0I1YyUmF5IE9mZmljaWFs
|
||||||
|
IDxvZmZpY2lhbEB2MnJheS5jb20+iQFUBBMBCAA+FiEErWNIgUDlPuCCHb89lRmC
|
||||||
|
s2m2F+UFAlx4NlQCGwMFCQPCZwAFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQ
|
||||||
|
lRmCs2m2F+Xvlgf8CenlUIj+abvtISSkHLi1qKPTIt8tzPxcYX1yUC3nkqaXW7eh
|
||||||
|
+VTjZXU7y5rfelUBQchnEqqIfH4liH5t+yFoMeTntyo3bTgcj7BhjBwwB4lQspnb
|
||||||
|
AjiuLV95L6QbJoPVyJ1KlAC3X88QRlUDYy5ft0wTro1A4oLdgtbzWhiXKIAcedBt
|
||||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Cr96mRiu0YA==
|
||||||
|
=T8XU
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
|
`, `-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
Comment: GPGTools - https://gpgtools.org
|
Comment: GPGTools - https://gpgtools.org
|
||||||
|
|
||||||
mQINBFiuFLcBEACtu5pycj7nHINq9gdkWtQhOdQPMRmbWPbCfxBRceIyB9IHUKay
|
mQINBFiuFLcBEACtu5pycj7nHINq9gdkWtQhOdQPMRmbWPbCfxBRceIyB9IHUKay
|
||||||
@ -64,8 +93,7 @@ fkXkose778mzGzk5rBr0jGtKAxV2159CaI2KzR+uN7JwzoHrRRhVu/OWcaL/5MKq
|
|||||||
OUUihc22Z9/8GnKH1gscBhoIF+cqqOfzTIA6KrJHIC2u5Vpjvac=
|
OUUihc22Z9/8GnKH1gscBhoIF+cqqOfzTIA6KrJHIC2u5Vpjvac=
|
||||||
=xv/V
|
=xv/V
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
||||||
`
|
`}
|
||||||
)
|
|
||||||
|
|
||||||
func firstIdentity(m map[string]*openpgp.Identity) string {
|
func firstIdentity(m map[string]*openpgp.Identity) string {
|
||||||
for k := range m {
|
for k := range m {
|
||||||
@ -118,20 +146,25 @@ func (c *VerifyCommand) Execute(args []string) error {
|
|||||||
return newError("failed to open file ", *sigFile).Base(err)
|
return newError("failed to open file ", *sigFile).Base(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
keyring, err := openpgp.ReadArmoredKeyRing(strings.NewReader(pubkey))
|
for _, key := range pubkey {
|
||||||
|
keyring, err := openpgp.ReadArmoredKeyRing(strings.NewReader(key))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return newError("failed to create keyring").Base(err)
|
return newError("failed to create keyring").Base(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
entity, err := openpgp.CheckDetachedSignature(keyring, targetReader, sigReader)
|
entity, err := openpgp.CheckDetachedSignature(keyring, targetReader, sigReader)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return newError("failed to verify signature").Base(err)
|
fmt.Println("failed to verify, try another key: ", err)
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println("Signed by:", firstIdentity(entity.Identities))
|
fmt.Println("Signed by:", firstIdentity(entity.Identities))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return newError("file is not officially signed by V2Ray")
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
common.Must(RegisterCommand(&VerifyCommand{}))
|
common.Must(RegisterCommand(&VerifyCommand{}))
|
||||||
}
|
}
|
||||||
|
@ -1,52 +1,30 @@
|
|||||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
Comment: GPGTools - https://gpgtools.org
|
|
||||||
|
|
||||||
mQINBFiuFLcBEACtu5pycj7nHINq9gdkWtQhOdQPMRmbWPbCfxBRceIyB9IHUKay
|
mQENBFx4NlQBCADJyVwRUO/LzcnoHLWKppFQY4aTS+fH8k4Pf5nB3VR41v/3QZm1
|
||||||
ldKEAA5DlOtub2ao811pLqcvcWMN61vmwDE9wcBBf1BRpoTb1XB4k60UDuCH4m9u
|
jBkuO1522KmBkPPuuYDAdOrE8Y8UVLfir5RxnZXF9Ke8SPq0zB+ruOHfv0xJUz8q
|
||||||
r/XcwGaVBchiO8mdqCpB/h0rGXuoJ2Lqk4kXmyRZuaX2WUg7eOK9ZfslaaBc8lvI
|
bcArsdXpDRxtrEbi7J81YOB/yITuY5kSYUA9v1TZWf7eSS6GIw/YF0Eo/gsbbpwQ
|
||||||
r5UvY7UL39LtzvOhQ+el2fXhktwZnCjDlovZzRVpn0QXXUAnuDuzCmd04NXjHZZB
|
yon/Ue3xxxbZnWvfsluhPADomNwbJ5iTFeRClJqdACb/YqIEo2M2ttLE3QF2qrrL
|
||||||
8q+h7jZrPrNusPzThk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||||
Ton1Wxcv14DPigiItYk7WkOiyPTLpAloWRSzs7GDFi2MQaFnrrrJ3ep0wHKuaaYl
|
|
||||||
KJh08QdpalNSjGiga6boN1MH5FkI2NYAyGwQGvvcMe+TDEK43KcH4AssiZNtuXzx
|
|
||||||
fkXkose778mzGzk5rBr0jGtKAxV2159CaI2KzR+uN7JwzoHrRRhVu/OWcaL/5MKq
|
|
||||||
OUUihc22Z9/8GnKH1gscBhoIF+cqqOfzTIA6KrJHIC2u5Vpjvac=
|
|
||||||
=xv/V
|
|
||||||
-----END PGP PUBLIC KEY BLOCK-----
|
-----END PGP PUBLIC KEY BLOCK-----
|
Loading…
Reference in New Issue
Block a user