mirror of
https://github.com/logos-co/nomos-specs.git
synced 2025-02-09 05:54:16 +00:00
14 lines
276 B
Python
14 lines
276 B
Python
from typing import TypeAlias
|
|
|
|
import blspy
|
|
|
|
from .utils import random_bytes
|
|
|
|
BlsPrivateKey: TypeAlias = blspy.PrivateKey
|
|
BlsPublicKey: TypeAlias = blspy.G1Element
|
|
|
|
|
|
def generate_bls() -> BlsPrivateKey:
|
|
seed = random_bytes(32)
|
|
return blspy.BasicSchemeMPL.key_gen(seed)
|