Retrieve the 32-byte representation of this key.
(self)
| 144 | self.set(generate_privkey(), compressed) |
| 145 | |
| 146 | def get_bytes(self): |
| 147 | """Retrieve the 32-byte representation of this key.""" |
| 148 | assert self.valid |
| 149 | return self.secret.to_bytes(32, 'big') |
| 150 | |
| 151 | @property |
| 152 | def is_valid(self): |