Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove entropy in tests #507

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"Name": "bls secret key encryption",
"SKPem": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBckZWNTk2TkdRRWV2VVN1UmtwWHNnMXN1ZzRJZzJITjh5aDlFVGx5NkFCY0t1cXlYCm0zd0VTbVg3T0VmZDdMRWk4MVRRdHYrTmFQUGZFV2M0UTJiRWNRSVZOL2hWUXVrL0JFZWQvTTBUbTVzQmZXZUgKMkl5OGVGU2VJVmxaZ3V1ZFFQdDdEWEdGS0xjQitKYmd3Szd3WENyeFQyRW56d2YwQ0ZMYWpUVFpJUE51MFhjYQpSMjFYNy9aQ0RvRUM2Yy9yVUcraFhLdG1ZMFNCenlDNkk3Qy9ocGI5RWExUW9GTjh4QXRvc3l2djVCVlRpZ0JCCi9BeWREUzRmMGtWc2dlLytUaDQrK3JNcnJzWXhXcnpENmQyZVM1UytPOU5mWWpLU2xLL1I0VGxuK1NvNDFVVE0KSGpuWjBscWN3RlVNeU8rdzVabS9FNWdReGNZR0VPMXBtRWQvWFFJREFRQUJBb0lCQUJRWHJ5M0JPcHFhQVFYTQp0NTlJblplL0ZOQStac2YxeHhIbHpWZjVsYklXL2FoQUlUaituNTF4QUhaU1lyeUs5cEU2VFU5WXdrci9TLzNDCmRCdmZxbjJtaVlUS0RsN0x4UTRocjNqZkRDOHpSbHd4cXZRRGpLSFc4OHpkbHdNZHAyc0JKeHF0SnFKVm5BUT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HcwaFMydk96Qk5VK3ZBRUVYNHdxQmp6M1grUER1OUxid0E1NFdtClVRSURBUUFCCi0tLS0tRU5EIFJTQSBQVUJMSUMgS0VZLS0tLS0K",
"PlainText": "X0cRp5bBEWtRGOw1J5+2TVUdmziBPSk5lU3S31Fg09k="
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"Name": "simple encryption",
"SKPem": "LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFb3dJQkFBS0NBUUVBMHc0SEJDTWNhR3pDalk1ZlJhNTRVaUgwYXhybEhjWkRMOU1ZSU02R3NsSTlHVms3CnM5c28reDVnWkgxaGlkZUVOM1R3d1F5TVdwRm5RQVU0QnlGUEF2WGZLU2VYYWhqeGZ1WTNhU1NPNUhGQVFZSWYKQnp1b3FnNHRmeWtERGR4M0RMOU9OTElaVm9SdXpsOVNjcDhkY0ZEbm5Hd041Tldlc0tmWjdvRXQxNUNURis5YQpHaWY3R00ycWlxb2ltaUVabnBMUzRycEd4ZzhVOXk3T0lNN0tvN3NqQytLdmp1QUtJRjlNVTkzWkQ0YUFZemFECjhPdGp0QmY4YjBYaHNZcm0vNERtdWltZ0dHUWFOOVVTYzVndWdEUGFmTXVnRUhOYlF1NlVUbXhwUFNTdW4zNXcKVWxCc3ErM2R4VUtxK2djc3VkdllCc3V4em4zdXpqck1Xd3hrL1FJREFRQUJBb0lCQURTOHRKUWNFZVVtQ0JkSApGQmRkV1VOc3FKNTZ3ZldHclJNdU5FRStXZm9GQXE5cTFMaEVjeUVNbmhsK0d2bE9tUU1pZldZL3RIS05FcmUwCmxpTng5MFJPRzgwMHoyajdncHlxK2YyVDNRRElLNzR5dlg0Wk1qUU1CdUpYWlNQNWl1WHNoNll6T3BHYjFmUkwKYlZhbTI3eE0reExqRFRXNUMwWXBLeE9sdzhheExXQnM2b0FCVWs3QmlDNEtpOGM2dXVsWk4wejVLOXVJdjJNNQpnbmMxMGY3aFJrcklRSUFycXlyM3YzN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ruLr1iM0y+2TPMZL3myun7eAQAAAAAAAAABAAAAAAAAAAAAAwEAAAAAjoAGZVGoGzGCWHCe2vfdH2PNaGoOTbiym7t6z+ZWCGd69aUn2USO5Hg1SF4CtQvARAAAAAIAAAAAAAAADAAAAAAAAAAUAAAApHmwI9nyjrnM3TW7lg+1wmVTDf8Xiufkqbd/AX91nKWiEl5ya94M2SozMAlUlMjAB4Kif6iQfowarePazbjgYUaGxn4fYoMEYF14YeDtmAPGriFrSq5VqP+0nu0ZPL6nRiYR0sWSvfUhTxJP56Ummrc9RO/J5s4avjL4GWrlJt4BAAAAAAAAAAEAAAAAAAAA"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"Messages": [
{
"Signatures": [
"OjNivEOzxvVObhbaQZVW6BaAQ/e5d4aZCnjOkc8yl2dHTQJQoCeqih3OYzi9DamcmbMyxxrrW9m9L6h1Lz/XvGiQyl1wjJY4Nfsj/wghm95C7rjCLqKlX1DkVp6ff7fnYLcApjJmGmPhuQKlZtcE7CkPgVQmoOdSD4nPPlC8eOlPTO+mmC/UeBhAjfbZ4vqrSi+NySda4vEpr/vZoS9oh4efcM4lq+k4JeEcIaEjo+4W5IsAPZT9N7jxFgOnXcyy+UwYDUshfd7l9+QdBihBUiwubiVQnppwmYnUy/eKuSqORyV9NlCGiRd9u89KfFgWvBEASejgXYDfza5tEkPI0A=="
"RhZ9EOKkj9RdFYqwF72zDdfechNjIDtIMIf7jfvUa4b3d6/4ODk3J1kBeOrM73RVP6V7OOElU4RJOnxu8g4qEQPU52JPs7V8zvH6HcQd+z7hs2CtnYBWFh1SfxsuzOj0JKgLF3jjO4DxS5mpSfUvU9vVfRhKOfz9oWfFcU4jkrQGnOZsTgXhOlDVZBnclO7UkY5xKUV1iZEZI+cLClZQGSFFl+CDHJaaVEsadsgY9KL0nqIvN3AunE+bAFPQxzw6M2I37lclUYdzHTv4O0jWtfuxneEyBUGUy16F5JrSSlw8Ojywqj2BXb3/lszFFLa7i69Y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SNk9BakNFUjRLN1JjLzV2bksKanZCaDU3bFNRZjdZRk9kV2ZnbEhjTWNYZndVNStldmFFbVJhaW9vYXpTQnkwMUtvMlJEQnBGL3VFNzdzZGYxQwo2NVRRSnZvS3kyRjBKUWJ2ME9RVFNqVzBDUHcwaFMydk96Qk5VK3ZBRUVYNHdxQmp6M1grUER1OUxid0E1NFdtClVRSURBUUFCCi0tLS0tRU5EIFJTQSBQVUJMSUMgS0VZLS0tLS0K"
]
}
2 changes: 1 addition & 1 deletion types/spectest/generate/tests.json

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions types/spectest/tests/encryption/encrypt_bls_sk.go
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
package encryption

import (
"fmt"
"github.com/herumi/bls-eth-go-binary/bls"
"github.com/ssvlabs/ssv-spec/types"
"github.com/ssvlabs/ssv-spec/types/testingutils"
)

// EncryptBLSSK tests encrypting a BLS private key
func EncryptBLSSK() *EncryptionSpecTest {
types.InitBLS()
blsSK := &bls.SecretKey{}
blsSK.SetByCSPRNG()

sk, pk, _ := types.GenerateKey()
pkObj, _ := types.PemToPublicKey(pk)
cipher, _ := types.Encrypt(pkObj, blsSK.Serialize())
ks := testingutils.Testing4SharesSet()

sk := ks.OperatorKeys[1]
skPem := types.PrivateKeyToPem(sk)
pkPem, err := types.GetPublicKeyPem(sk)
if err != nil {
panic(err)
}

blsSK := ks.Shares[1]

fmt.Printf("cipher L: %d\n", len(cipher))
return &EncryptionSpecTest{
Name: "bls secret key encryption",
SKPem: sk,
PKPem: pk,
PlainText: blsSK.Serialize(),
CipherText: cipher,
Name: "bls secret key encryption",
SKPem: skPem,
PKPem: pkPem,
PlainText: blsSK.Serialize(),
}
}
23 changes: 15 additions & 8 deletions types/spectest/tests/encryption/encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@ package encryption

import (
"github.com/ssvlabs/ssv-spec/types"
"github.com/ssvlabs/ssv-spec/types/testingutils"
)

// SimpleEncrypt tests simple rsa encrypt
func SimpleEncrypt() *EncryptionSpecTest {
sk, pk, _ := types.GenerateKey()
pkObj, _ := types.PemToPublicKey(pk)
cipher, _ := types.Encrypt(pkObj, []byte("hello world"))

ks := testingutils.Testing4SharesSet()

sk := ks.OperatorKeys[1]
skPem := types.PrivateKeyToPem(sk)
pkPem, err := types.GetPublicKeyPem(sk)
if err != nil {
panic(err)
}

return &EncryptionSpecTest{
Name: "simple encryption",
SKPem: sk,
PKPem: pk,
PlainText: []byte("hello world"),
CipherText: cipher,
Name: "simple encryption",
SKPem: skPem,
PKPem: pkPem,
PlainText: []byte("hello world"),
}
}
17 changes: 6 additions & 11 deletions types/spectest/tests/encryption/test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package encryption

import (
"testing"

"github.com/ssvlabs/ssv-spec/types"
"github.com/stretchr/testify/require"
"testing"
)

type EncryptionSpecTest struct {
Name string
SKPem []byte
PKPem []byte
PlainText []byte
CipherText []byte
Name string
SKPem []byte
PKPem []byte
PlainText []byte
}

func (test *EncryptionSpecTest) TestName() string {
Expand Down Expand Up @@ -39,9 +39,4 @@ func (test *EncryptionSpecTest) Run(t *testing.T) {
plain, err := types.Decrypt(sk, cipher)
require.NoError(t, err)
require.EqualValues(t, test.PlainText, plain)

// decrypt test's cipher and compare to plain text
plain2, err := types.Decrypt(sk, test.CipherText)
require.NoError(t, err)
require.EqualValues(t, test.PlainText, plain2)
Comment on lines -42 to -46
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good imo

}
13 changes: 1 addition & 12 deletions types/spectest/tests/signedssvmsg/encoding.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package signedssvmsg

import (
"github.com/ssvlabs/ssv-spec/types"
"github.com/ssvlabs/ssv-spec/types/testingutils"
)

Expand All @@ -10,17 +9,7 @@ func Encoding() *EncodingTest {

ks := testingutils.Testing4SharesSet()

// RSA key to sign message
skByts, _, err := types.GenerateKey()
if err != nil {
panic(err.Error())
}
sk, err := types.PemToPrivateKey(skByts)
if err != nil {
panic(err.Error())
}

msg := testingutils.TestingSignedSSVMessage(ks.Shares[1], 1, sk)
msg := testingutils.TestingSignedSSVMessage(ks.Shares[1], 1, ks.OperatorKeys[1])

byts, err := msg.Encode()
if err != nil {
Expand Down
13 changes: 4 additions & 9 deletions types/spectest/tests/signedssvmsg/valid.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,18 @@ func Valid() *SignedSSVMessageTest {

ks := testingutils.Testing4SharesSet()

// RSA key to sign message
skByts, pkByts, err := types.GenerateKey()
pkBytes, err := types.GetPublicKeyPem(ks.OperatorKeys[1])
if err != nil {
panic(err.Error())
}
sk, err := types.PemToPrivateKey(skByts)
if err != nil {
panic(err.Error())
panic(err)
}

msg := testingutils.TestingSignedSSVMessage(ks.Shares[1], 1, sk)
msg := testingutils.TestingSignedSSVMessage(ks.Shares[1], 1, ks.OperatorKeys[1])

return &SignedSSVMessageTest{
Name: "valid",
Messages: []*types.SignedSSVMessage{
msg,
},
RSAPublicKey: [][]byte{pkByts},
RSAPublicKey: [][]byte{pkBytes},
}
}