File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,23 @@ def test_array_array_of_ints_memoryview(self):
7777 vk = VerifyingKey .from_string (buffer (arr ))
7878
7979 self .assertEqual (self .vk .to_string (), vk .to_string ())
80+
81+ def test_bytes_uncompressed (self ):
82+ vk = VerifyingKey .from_string (b'\x04 ' + self .key_bytes )
83+
84+ self .assertEqual (self .vk .to_string (), vk .to_string ())
85+
86+ def test_bytearray_uncompressed (self ):
87+ vk = VerifyingKey .from_string (bytearray (b'\x04 ' + self .key_bytes ))
88+
89+ self .assertEqual (self .vk .to_string (), vk .to_string ())
90+
91+ def test_bytes_compressed (self ):
92+ vk = VerifyingKey .from_string (b'\x02 ' + self .key_bytes [:24 ])
93+
94+ self .assertEqual (self .vk .to_string (), vk .to_string ())
95+
96+ def test_bytearray_uncompressed (self ):
97+ vk = VerifyingKey .from_string (bytearray (b'\x02 ' + self .key_bytes [:24 ]))
98+
99+ self .assertEqual (self .vk .to_string (), vk .to_string ())
You can’t perform that action at this time.
0 commit comments