Skip to content

feat: decode transaction signature and public key - #30

Open
b00f wants to merge 6 commits into
mainfrom
feat/local-tx-building
Open

feat: decode transaction signature and public key#30
b00f wants to merge 6 commits into
mainfrom
feat/local-tx-building

Conversation

@b00f

@b00f b00f commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR decodes the transaction signature and public key.

b00f added 2 commits July 3, 2026 21:54
- Make Transaction.encode() public, export FLAG_NOT_SIGNED
- Replace RPC-based raw tx building with local Transaction.createTransferTx/createBondTx
- Add transaction/index.ts package barrel
- Update wallet and main index to import from transaction package
…plement Transaction.sign/verify

- Add crypto/interfaces.ts with IPublicKey, ISignature, IPrivateKey
- Transaction now stores typed publicKey/signature instead of raw bytes
- Implement Transaction.sign(privateKey) and Transaction.verify()
- Update Transaction.encode/decode for signed tx round-trip
- Add encodeTx() and decodeBech32PublicKey() helpers
- Rework wallet.signTransaction() to use Transaction.sign() + verify
- Fix signBytes() to always return unsigned portion independently
Comment thread src/transaction/transaction.test.ts Fixed
Comment thread src/transaction/transaction.test.ts Fixed
Comment thread src/transaction/transaction.test.ts Fixed
b00f and others added 2 commits July 4, 2026 15:40
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Comment thread src/transaction/transaction.test.ts Fixed
b00f and others added 2 commits July 4, 2026 15:41
…tion or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
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.

1 participant