File: bls.py

package info (click to toggle)
python-eth-typing 5.2.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 324 kB
  • sloc: python: 1,968; makefile: 234
file content (20 lines) | stat: -rw-r--r-- 355 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
Types used for BLS Signatures.
"""

from typing import (
    NewType,
)

BLSPubkey = NewType("BLSPubkey", bytes)
"""
A BLS public key that is 48 bytes in length.
"""
BLSPrivateKey = NewType("BLSPrivateKey", int)
"""
A BLS private key integer value.
"""
BLSSignature = NewType("BLSSignature", bytes)
"""
A BLS signature that is 96 bytes in length.
"""