cardano-rpc
Safe HaskellNone
LanguageHaskell2010

Cardano.Rpc.Server.Internal.UtxoRpc.Type.Certificate

Synopsis

Documentation

txCertToUtxoRpcCertificate :: ShelleyBasedEra era -> TxCert (ShelleyLedgerEra era) -> Proto Certificate Source #

Convert a ledger transaction certificate to the UTxO RPC Certificate message. The redeemer field is left unset: it comes from the witness set, not the certificate.

Each group of eras has its own concrete certificate type: ShelleyTxCert up to Babbage, ConwayTxCert in Conway and DijkstraTxCert in Dijkstra. TxCert reduces to those concrete types at the concrete eras; the payloads are era-independent, so the helpers below need no era constraints.

credentialToUtxoRpcStakeCredential :: forall (kr :: KeyRole). Credential kr -> Proto StakeCredential Source #

Convert a ledger credential of any key role to the UTxO RPC StakeCredential message, which carries the bare key or script hash.

anchorToUtxoRpcAnchor :: Anchor -> Proto Anchor Source #

Convert a ledger anchor to the UTxO RPC Anchor message.

scriptHashToBytes :: ScriptHash -> ByteString Source #

The bare script hash bytes.