klefki.crypto.ecdsa.secp256k1
¶
Module Contents¶
Functions¶
|
|
|
|
|
https://bitcoin.stackexchange.com/questions/38351/ecdsa-v-r-s-what-is-v |
|
|
|
-
klefki.crypto.ecdsa.secp256k1.
random_privkey
() → CF¶
-
klefki.crypto.ecdsa.secp256k1.
pubkey
(priv: CF) → CG¶
-
klefki.crypto.ecdsa.secp256k1.
sign
(priv: CF, m: str, hash_fn: Callable[[str], int] = to_sha256int) → SigType¶ https://bitcoin.stackexchange.com/questions/38351/ecdsa-v-r-s-what-is-v
-
klefki.crypto.ecdsa.secp256k1.
verify
(pub: CG, sig: tuple, msg: str)¶
-
klefki.crypto.ecdsa.secp256k1.
verify_msghash
(pub: CG, sig: tuple, mhash: int)¶