Skip to content

SEP-23: Add Liquidity Pool and Claimable Balance Strkeys - #1646

Merged
leighmcculloch merged 12 commits into
masterfrom
sep23-add-lp-cb
Mar 17, 2025
Merged

leighmcculloch merged 12 commits into
masterfrom
sep23-add-lp-cb

Conversation

@leighmcculloch

@leighmcculloch leighmcculloch commented Feb 7, 2025 •

Copy link
Copy Markdown
Member

What

Add two new strkey types for liquidity pool and claimable balance, including examples of valid and invalid addresses.

Why

In support of the upcoming changes to SEP-23 for CAP-67.

Related

Todo

  • Add invalid test cases.
  • Validate with rs-stellar-strkey implementation, tests, and fuzzing.
  • Get agreement and sign off prior to merge from reviewers involved in CAP-67.

@leighmcculloch
leighmcculloch marked this pull request as ready for review February 18, 2025 05:56
@leighmcculloch
leighmcculloch requested review from dmkozh and stanford-scs and removed request for dmkozh February 18, 2025 06:19
Comment thread ecosystem/sep-0023.md Resolved
Comment thread ecosystem/sep-0023.md
2. Append the binary bytes of the key (e.g., 32-bytes for ED25519).
2. Append the binary bytes of the key (e.g., 32-bytes for ED25519, 32-bytes for SHA256).

If we are encoding a claimable balance, the binary bytes of the key has a length of 33-bytes: 1-byte value

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stanford-scs The claimable balance strkey will not be padded to a multiple of 4. For some other strkeys like the signed payload we did padding, but I don't remember why or if that is truly important. I'm inclined to not pad for smaller strkeys in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants