KeepRaw

scalus.cardano.ledger.KeepRaw
See theKeepRaw companion class
object KeepRaw

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
KeepRaw.type

Members list

Value members

Concrete methods

def apply[A : Encoder](value: A): KeepRaw[A]

Create a KeepRaw instance from a value, encoding it to CBOR to get the raw bytes

Create a KeepRaw instance from a value, encoding it to CBOR to get the raw bytes

Attributes

def unsafe[A](value: A, raw: => Array[Byte]): KeepRaw[A]

Create a KeepRaw instance from a value and its raw CBOR bytes

Create a KeepRaw instance from a value and its raw CBOR bytes

Attributes

Note

This method creates a KeepRaw instance that may be CBOR encoded differently from the original raw bytes. Use it only if you know what you are doing.

Givens

Givens

given given_Decoder_KeepRaw[A : Decoder](implicit evidence$1: Decoder[A], OriginalCborByteArray): Decoder[KeepRaw[A]]
given given_Encoder_KeepRaw[A : Encoder]: Encoder[KeepRaw[A]]