ed25519_kholaw_keys
Module for ed25519-kholaw keys. With respect to ed25519, the private key has a length of 64-byte (left 32-byte of the ed25519 private key and a right 32-byte extension part).
- class Ed25519KholawKeysConst
Bases:
object
Class container for ed25519-kholaw keys constants.
- PRIV_KEY_BYTE_LEN: int = 64
- class Ed25519KholawPublicKey(key_obj: VerifyKey)
Bases:
Ed25519PublicKey
Ed25519-Kholaw public key class.
- static CurveType() EllipticCurveTypes
Get the elliptic curve type.
- Returns:
Elliptic curve type
- Return type:
- m_ver_key: VerifyKey
- class Ed25519KholawPrivateKey(key_obj: IPrivateKey, key_ex_bytes: bytes)
Bases:
IPrivateKey
Ed25519-Kholaw private key class.
- classmethod FromBytes(key_bytes: bytes) IPrivateKey
Construct class from key bytes.
- Parameters:
key_bytes (bytes) – Key bytes
- Returns:
IPrivateKey object
- Return type:
- Raises:
ValueError – If key bytes are not valid
- m_sign_key: Ed25519PrivateKey
- m_ext_key: bytes
- static CurveType() EllipticCurveTypes
Get the elliptic curve type.
- Returns:
Elliptic curve type
- Return type:
- static Length() int
Get the key length.
- Returns:
Key length
- Return type:
int
- UnderlyingObject() Any
Get the underlying object.
- Returns:
Underlying object
- Return type:
Any
- PublicKey() IPublicKey
Get the public key correspondent to the private one.
- Returns:
IPublicKey object
- Return type:
IPublicKey object