ScriptHash

scalus.cardano.ledger.ScriptHash
See theScriptHash companion object
final case class ScriptHash(hash: Hash28)

Represents a script hash in Cardano

To compute a script hash, a tag must be prepended to the script bytes before hashing. The tag is determined by the script language:

  • "\x00" for multisig scripts
  • "\x01" for Plutus V1 scripts
  • "\x02" for Plutus V2 scripts
  • "\x03" for Plutus V3 scripts

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product