Function cip105DRepFromCredential

Build a CIP-105 DRep ID from a governance credential.

  • Parameters

    • credential: Credential

      Credential containing type and hex hash.

    Returns string

    Bech32-encoded CIP-105 DRep ID (drep1... or drep_script1...).