Skip to content

feat(solana): expose solana default keys#2485

Merged
archseer merged 1 commit intomainfrom
jade/export-solana-pk
Mar 24, 2026
Merged

feat(solana): expose solana default keys#2485
archseer merged 1 commit intomainfrom
jade/export-solana-pk

Conversation

@jadepark-dev
Copy link
Contributor

@jadepark-dev jadepark-dev commented Mar 23, 2026


Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.

Why

The changes introduce a new constant for the default Solana private and public keys within the Solana blockchain component to facilitate testing with a known keypair. Additionally, a new test is added to ensure the consistency of these keys with the raw key data. The update in dependencies includes adding the github.com/mr-tron/base58 package, which is used for encoding and decoding the keys, ensuring compatibility with Solana's base58-encoded key format.

What

  • framework/components/blockchain/solana.go
    • Added DefaultSolanaPrivateKey and DefaultSolanaPublicKey constants.
      These changes introduce default keys for testing purposes, ensuring developers can work with a consistent and expected environment.
  • framework/components/blockchain/solana_test.go
    • Added a new file with a test TestDefaultSolanaKeypairConsistency to check the consistency of the default keys with the raw key data.
      This ensures the integrity of the default keys, confirming they match the expected values derived from the raw keypair data.
  • framework/go.mod and framework/go.sum
    • Added github.com/mr-tron/base58 v1.2.0 to dependencies.
      This addition supports the new test implementation by providing necessary base58 encoding and decoding, aligning with Solana's key format.

@jadepark-dev jadepark-dev marked this pull request as ready for review March 23, 2026 16:39
@jadepark-dev jadepark-dev requested a review from a team as a code owner March 23, 2026 16:39
Copilot AI review requested due to automatic review settings March 23, 2026 16:39
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR exposes Solana’s default test-validator identity keys as exported constants in the blockchain component, and adds a regression test to ensure the constants remain consistent with the embedded id.json keypair bytes.

Changes:

  • Add DefaultSolanaPrivateKey and DefaultSolanaPublicKey constants to the Solana blockchain component.
  • Add a unit test that derives base58 encodings from idJSONRaw and asserts they match the exported constants.
  • Add github.com/mr-tron/base58 as a direct Go module dependency (and update go.sum).

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
framework/components/blockchain/solana.go Exports default Solana test-validator key constants.
framework/components/blockchain/solana_test.go Adds a consistency test that base58-encodes idJSONRaw and compares against the exported constants.
framework/go.mod Adds mr-tron/base58 dependency.
framework/go.sum Records checksums for the new dependency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jadepark-dev jadepark-dev force-pushed the jade/export-solana-pk branch 2 times, most recently from f21f425 to 24245fc Compare March 23, 2026 18:13
@archseer archseer enabled auto-merge (squash) March 24, 2026 04:54
@archseer archseer merged commit 4c4b8eb into main Mar 24, 2026
143 checks passed
@archseer archseer deleted the jade/export-solana-pk branch March 24, 2026 07:39
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.

4 participants