Skip to content

Refactor SDK to Support Multiple Protocols (Hashchain and Signature/Multisig) #12

@pali101

Description

@pali101

Description

Currently, SDK code and types are named generically for the hashchain protocol. With the new signature/multisig channel contract, we need to segregate logic and types for each protocol to ensure clarity, maintainability, and scalability.

Tasks

  • Rename and move hashchain types to /src/types/hashchainChannel.ts
  • Add types for signature/multisig protocol to /src/types/signatureChannel.ts
  • Split protocol classes: HashchainProtocol (/src/hashchainProtocol.ts), SignatureProtocol (/src/signatureProtocol.ts)
  • Update index.ts to export both protocols and type groups
  • Ensure ABI and utils are clearly organized for both protocols

Goal

Clear separation and naming for each protocol, making SDK ready for future extensions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions