CredentialKey class
Represents a stake credential using a public key.
- Inheritance
-
- Object
- Credential
- CredentialKey
Constructors
-
CredentialKey(List<
int> data) -
Constructs a CredentialKey with the specified
data. - CredentialKey.deserialize(CborBytesValue cbor)
-
Deserializes a CredentialKey from CBOR bytes
cbor.factory -
CredentialKey.fromPublicKey(List<
int> pubKeyBytes) -
Constructs a CredentialKey from a public key
pubKeyBytes. It derives the credential from the public key bytes using hashing.
Properties
-
data
→ List<
int> -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CredentialType
-
Returns the type of this stake credential, which is CredentialType.key.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → List< int> -
Serializes the object to CBOR bytes.
inherited
-
serializeHex(
) → String -
Serializes the object to hexadecimal string.
inherited
-
toCbor(
) → CborObject -
Converts the object to a CBOR object.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the object to a JSON representation.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited