Skip to content

feat: implement internal balance tracking and accounting#101

Open
binayyub4211 wants to merge 6 commits intoMissBlue00:mainfrom
binayyub4211:main
Open

feat: implement internal balance tracking and accounting#101
binayyub4211 wants to merge 6 commits intoMissBlue00:mainfrom
binayyub4211:main

Conversation

@binayyub4211
Copy link
Copy Markdown

@binayyub4211 binayyub4211 commented Mar 24, 2026

Closes #18


Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Test Configuration:

  • Firmware version:
  • Hardware:
  • SDK:

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

@rhoggs-bot-test-account is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 24, 2026

@binayyub4211 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@binayyub4211
Copy link
Copy Markdown
Author

Title: feat: implement API key generation and hashing service

What was done:

Created POST /apikeys endpoint
Generates a 32-byte cryptographically secure random key prefixed with sp_live_
Stores only the SHA256 hash (key_hash) — never the plaintext key
Returns the plaintext key to the merchant only once upon creation
Closes #7

@MissBlue00
Copy link
Copy Markdown
Owner

@binayyub4211 CI/CD checks are failing, please resolve

@MissBlue00
Copy link
Copy Markdown
Owner

@binayyub4211 resolve the merge conflicts

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.

Treasury: Implement internal balance tracking and accounting

2 participants