Skip to main content

PCredential

credentials (payment or staking); either a publik key hash (in the case of a user) or a validator hash (for on-chain scritps)

definition:

export const PCredential = pstruct({
PPubKeyCredential: { pkh: PPubKeyHash.type },
PScriptCredential: { valHash: PValidatorHash.type },
});

PPubKeyCredential

user governed credentials

pkh

type: PPubKeyHash

PScriptCredential

on-chain script governed credentials

valHash

type: PValidatorHash