Skip to content

Conversation

@raymondjacobson
Copy link
Member

Modify post route to create a core reward instance when launchpadDeterministicSecret is defined

Use code as the rewardId

@raymondjacobson raymondjacobson changed the title Create core reward instance when code is added Create core reward instance when redemption code is added Nov 6, 2025
codeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
signedAuthMessage = "code"
codeLength = 6
codeChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
Copy link
Contributor

Choose a reason for hiding this comment

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

didn't want to just base58 a random number? :D

}

claimAuthority, claimAuthorityPrivateKey, err := utils.DeriveEthAddressForMint(
[]byte("launchpad_reward_code"),
Copy link
Contributor

Choose a reason for hiding this comment

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

We used a different value for this domain in our scripting.
Probably should be a constant somewhere right? Since it affects the key that gets generated.

Copy link
Member Author

Choose a reason for hiding this comment

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

ah yeah this was a mistake

@raymondjacobson raymondjacobson merged commit f09b1d7 into main Nov 7, 2025
5 checks passed
@raymondjacobson raymondjacobson deleted the rj-codes3 branch November 7, 2025 18:15
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