Native

scalus.cardano.ledger.Script.Native
See theNative companion object
final case class Native extends Script

Native script (timelock), with the CBOR it arrived in.

Haskell memoizes these bytes (MemoBytes), and so does this: the script hash, the reference-script size and the encoder use them, and two native scripts are equal only if their bytes are. Build one with Native(timelock) or Native.fromCbor(cbor), and read its timelock with script or case Native(t).

Attributes

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

Members list

Value members

Concrete methods

The timelock.

The timelock.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product

Concrete fields

blake2b_224(0x00 ++ bytes) of the original bytes, hashScript in cardano-ledger.

blake2b_224(0x00 ++ bytes) of the original bytes, hashScript in cardano-ledger.

Attributes