bls.py 355 B

1234567891011121314151617181920
  1. """
  2. Types used for BLS Signatures.
  3. """
  4. from typing import (
  5. NewType,
  6. )
  7. BLSPubkey = NewType("BLSPubkey", bytes)
  8. """
  9. A BLS public key that is 48 bytes in length.
  10. """
  11. BLSPrivateKey = NewType("BLSPrivateKey", int)
  12. """
  13. A BLS private key integer value.
  14. """
  15. BLSSignature = NewType("BLSSignature", bytes)
  16. """
  17. A BLS signature that is 96 bytes in length.
  18. """