Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full support for Byron addresses #540

Open
agaffney opened this issue Mar 12, 2024 · 0 comments
Open

Full support for Byron addresses #540

agaffney opened this issue Mar 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@agaffney
Copy link
Contributor

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
@wolf31o2 wolf31o2 added the enhancement New feature or request label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants