publicKeyToCredential static method

StakeCredKey publicKeyToCredential(
  1. List<int> pubKeyBytes
)

Convert a public key byte list to a StakeCredKey.

pubKeyBytes: The public key byte list.

Returns a StakeCredKey object.

Implementation

static StakeCredKey publicKeyToCredential(List<int> pubKeyBytes) {
  return StakeCredKey(publicKeyToHash(pubKeyBytes));
}