Saltar al contenido

Hash Command Line Guide

Este contenido aún no está disponible en español.

Bursa Command Line Guide for Generating Cryptographic Hashes used in Cardano.

Create Hashes for Metadata Files or Anchor Data

Section titled “Create Hashes for Metadata Files or Anchor Data”

We can use Bursa to create hashes for metadata or anchor-data, often used in Cardano Governance or in Stake Pool Operation.

Hash types:

  • metadata - Blake2b-256 hash of pool/DRep metadata JSON
  • anchor-data - Blake2b-256 hash of anchor data (constitutions, governance proposals)

The hash metadata commands are used for pool and DRep metadata registration. The hash is calculated from the canonical JSON representation.

Supported metadata types:

  • pool: Pool registration metadata
  • drep: DRep registration metadata

Pool Metadata Command Example

./bursa hash metadata pool-metadata.json

The hash anchor-data commands are used to generate a Blake2b-256 hash of anchor data used in Cardano governance.

For example, you might want to create an anchor data hash for constitutions, governance proposals, and other documents that are anchored to on-chain governance actions.

Anchor-Data Command Example

./bursa hash anchor-data --file-text constitution.txt

Explore other Bursa Commands

Bursa Command Categories

  1. wallet   - Commands for generating wallet and the files needed to manage a Cardano wallet
  2. api     - Commands for running API
  3. cert    - Commands for generating various Cardano certificates
  4. hash     - Commands for generating cryptographic hashes used in Cardano
  5. script    - Commands for multi-signature operations
  6. address - Commands for working with Cardano addresses
  7. key     - Commands for deriving individual keys from a mnemonic