ByronAddress

scalus.cardano.address.ByronAddress
See theByronAddress companion class
object ByronAddress

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object given_Encoder_ByronAddress extends Encoder[ByronAddress]

Attributes

Supertypes
trait Encoder[ByronAddress]
class Object
trait Matchable
class Any
Self type

Pretty prints ByronAddress as Base58

Pretty prints ByronAddress as Base58

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def create(addrRoot: ByteString, addrType: Int = ..., networkMagic: Option[Long] = ...): ByronAddress

Create a Byron address with proper CBOR structure.

Create a Byron address with proper CBOR structure.

This is useful for testing - it creates a valid Byron address with CRC32 checksum.

Value parameters

addrRoot

The 28-byte address root (payment key hash)

addrType

Address type: 0 for VerKey, 2 for Redeem

networkMagic

Optional network magic (None for mainnet)

Attributes

Returns

A valid ByronAddress

def fromBase58(base58: String): Try[ByronAddress]

Parse a Byron address from a Base58-encoded string.

Parse a Byron address from a Base58-encoded string.

Value parameters

base58

The Base58 encoded Byron address

Attributes

Returns

Success with ByronAddress if valid, Failure otherwise

Givens

Givens

Pretty prints ByronAddress as Base58

Pretty prints ByronAddress as Base58

Attributes