BootstrapWitness

scalus.cardano.ledger.BootstrapWitness
See theBootstrapWitness companion object
case class BootstrapWitness(publicKey: ByteString, signature: ByteString, chainCode: ByteString, attributes: ByteString)

Represents a bootstrap witness in Cardano (for Byron-era addresses)

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

Concrete fields

Rebuilds the addrRoot of the corresponding Byron address, matching cardano-ledger's bootstrapWitKeyHash (Cardano/Ledger/Keys/Bootstrap.hs): Blake2b-224 of SHA3-256 of the CBOR payload [addrType 0, [spending-tag 0, bytes64(publicKey ++ chainCode)], attributes], assembled with the constant prefix 0x83 0x00 0x82 0x00 0x58 0x40 (the attributes field is the witness's raw CBOR blob, appended verbatim).

Rebuilds the addrRoot of the corresponding Byron address, matching cardano-ledger's bootstrapWitKeyHash (Cardano/Ledger/Keys/Bootstrap.hs): Blake2b-224 of SHA3-256 of the CBOR payload [addrType 0, [spending-tag 0, bytes64(publicKey ++ chainCode)], attributes], assembled with the constant prefix 0x83 0x00 0x82 0x00 0x58 0x40 (the attributes field is the witness's raw CBOR blob, appended verbatim).

Attributes