mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-14 02:28:19 +00:00
add reed solomon
This commit is contained in:
parent
89dff71612
commit
fa8fdb683a
@ -129,6 +129,14 @@ def sign(message: bytes, secret_key: bytes32, public_key: bytes33 = None) -> byt
|
|||||||
def verify(message: bytes, public_key: bytes33, signature: bytes65) -> bool: # valid
|
def verify(message: bytes, public_key: bytes33, signature: bytes65) -> bool: # valid
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###trezor.crypto.reedsolomon
|
||||||
|
|
||||||
|
``` python
|
||||||
|
def encode(data: bytes) -> bytes: # encoded
|
||||||
|
|
||||||
|
def decode(data: bytes) -> bytes: # decoded
|
||||||
|
```
|
||||||
|
|
||||||
###trezor.crypto.secp256k1
|
###trezor.crypto.secp256k1
|
||||||
|
|
||||||
``` python
|
``` python
|
||||||
|
Loading…
Reference in New Issue
Block a user