We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Following methods panic if at least one operand is infinite:
no panic
pre-check the case
func TestPubCmp(t *testing.T) { var pub1 keys.PublicKey require.NoError(t, pub1.DecodeBytes([]byte{0x00})) pk, err := keys.NewPrivateKey() require.NoError(t, err) pub2 := pk.PublicKey() t.Run("equal", func(t *testing.T) { require.NotPanics(t, func() { pub1.Equal(pub2) }) }) t.Run("cmp", func(t *testing.T) { require.NotPanics(t, func() { pub1.Cmp(pub2) }) }) }
testing the NeoFS cryprography using keys pkg
keys
no
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current Behavior
Following methods panic if at least one operand is infinite:
Expected Behavior
no panic
Possible Solution
pre-check the case
Steps to Reproduce
Context
testing the NeoFS cryprography using
keys
pkgRegression
no
Your Environment
The text was updated successfully, but these errors were encountered: