Skip to content

PrvKeyDataId (Class)

A private key data identifier.

Wraps a hex-encoded private key data id. Can be constructed from a hex string or obtained from a PrvKeyDataInfo.

__eq__

__eq__(other: object) -> bool

__new__

__new__(id: str) -> PrvKeyDataId

Create a new PrvKeyDataId from a hex string.

PARAMETER DESCRIPTION
id

Hex-encoded private key data id.

TYPE: str

RETURNS DESCRIPTION
PrvKeyDataId

A new PrvKeyDataId instance.

TYPE: PrvKeyDataId

RAISES DESCRIPTION
Exception

If the hex string is invalid.

__repr__

__repr__() -> str

The detailed string representation.

RETURNS DESCRIPTION
str

The private key data id as a repr string.

TYPE: str

__str__

__str__() -> str

The hex string representation.

RETURNS DESCRIPTION
str

The private key data id as a hex string.

TYPE: str

to_hex

to_hex() -> str

Get the hex string representation.

RETURNS DESCRIPTION
str

The private key data id as a hex string.

TYPE: str