gouroboros icon indicating copy to clipboard operation
gouroboros copied to clipboard

Full support for Byron addresses

Open agaffney opened this issue 1 year ago • 0 comments

They have a totally different format from the Shelley addresses.

; Addresses

addrdistr = [1] / [0, stakeholderid]

addrtype = &("PubKey" : 0, "Script" : 1, "Redeem" : 2) / (u64 .gt 2)
addrattr = { ? 0 : addrdistr
           , ? 1 : bytes}
address = [ #6.24(bytes .cbor ([addressid, addrattr, addrtype])), u64 ]

Here's a random example address's hex, which can be found in mainnet block 59c07a2a52a32b30a4187177c9d883d746849b5823062938b73a831ed6c90b30:

582b82d818582183581cf0e09c4b2abe43c669c12aa45028f87098eb22e2dbc3a4c5381ed6b4a0001a1181b0c2

agaffney avatar Mar 12 '24 16:03 agaffney